Minor tweaks

This commit is contained in:
Jeremy Dormitzer 2024-05-24 01:03:44 -04:00
parent 8db9cc7e8f
commit d36967e371

View File

@ -223,10 +223,10 @@ You have the ability to evaluate Emacs Lisp code. To do so, output the Emacs Lis
((markdown-link-p) (markdown-follow-link-at-point))))
(defun llama-chat-context-action ()
"Perform a contextual action in the chat buffer based on the point.
"Perform a contextual action in the chat buffer based on the point:
- follows the link at point
- submits the input if point is at the end of the buffer"
* follows the link at point
* submits the input if point is within the user input zone"
(interactive)
(cond
((markdown-link-p) (llama-chat-follow-link))
@ -269,7 +269,7 @@ You have the ability to evaluate Emacs Lisp code. To do so, output the Emacs Lis
(pop-to-buffer (llama-chat-buffer
"*llama-doctor*"
(llm-make-chat-prompt
"Briefly greet the user without mentioning your name and ask how you can help."
"Briefly greet the client without mentioning your name and ask how you can help."
:context "You are an empathetic therapist."))))
(keymap-set llama-chat-mode-map "RET" #'llama-chat-context-action)