From 7257bf3ffa97540ba8d44dbdeacf7c427090f2dd Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Tue, 17 Sep 2024 20:21:43 +0200 Subject: [PATCH] header line tweak --- emacs/module/module-ellama-capture.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emacs/module/module-ellama-capture.el b/emacs/module/module-ellama-capture.el index bf776b1..e84961e 100644 --- a/emacs/module/module-ellama-capture.el +++ b/emacs/module/module-ellama-capture.el @@ -18,9 +18,14 @@ (text-mode) (use-local-map (copy-keymap text-mode-map)) (local-set-key (kbd "C-c C-c") 'ellama-capture-finalize) - (local-set-key (kbd "C-c C-k") 'ellama-capture-abort)) + (local-set-key (kbd "C-c C-k") 'ellama-capture-abort) + (local-set-key (kbd "C-c f") 'ellama-context-add-file) + (local-set-key (kbd "C-c i") 'ellama-context-add-info-node) + (setq header-line-format + (substitute-command-keys + "(ellama-capture) C-c C-c: send, C-c C-k: abort, C-c f: add file, C-c i: add info node"))) (pop-to-buffer buf) - (message "Type your message, then C-c C-c to send or C-c C-k to abort"))) + (message "Type your message, then use the commands shown in the header line"))) (defun ellama-capture-finalize () "Send the content of the Ellama input buffer to Ellama and kill the buffer."