branch: externals/ellama commit 6cacacb679ecadeb2cbf5cd190b0a27c197a490d Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Refactor Ellama preview context mode Refactored the `ellama-preview-context-mode` by renaming the quit command key binding to use a custom function `ellama-kill-current-buffer`. Added a header line format that displays the quit command instruction. --- ellama.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ellama.el b/ellama.el index f9c3eeb6af..b93892d063 100644 --- a/ellama.el +++ b/ellama.el @@ -1314,12 +1314,15 @@ Then kill current buffer." :doc "Local keymap for Ellama preview context mode buffers." :full t :parent special-mode-map - "q" #'quit-window) + "q" #'ellama-kill-current-buffer) (define-minor-mode ellama-preview-context-mode "Toggle Ellama Preview Context mode." :keymap ellama-preview-context-mode-map - :group 'ellama) + :group 'ellama + (setq header-line-format + (substitute-command-keys + "`\\[ellama-kill-current-buffer]' to quit"))) (defcustom ellama-preview-context-element-display-action-function nil "Display action function for `ellama-preview-context-element'."