karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.04k stars 113 forks source link

Newline character discarded for gptel-prompt-prefix-alist #133

Closed daedsidog closed 7 months ago

daedsidog commented 7 months ago

Attempting to use a newline character in gptel-prompt-prefix-alist:

(customize-set-variable 'gptel-prompt-prefix-alist
                        (cons (cons 'org-mode "* Question\n")
                              (assq-delete-all 'org-mode gptel-prompt-prefix-alist)))

Results in:

image

M-j did not work either.

daedsidog commented 7 months ago

My mistake, the newline character is there, but the point isn't moved to the end of the buffer.