From 7f89fdbf9b3d4d45ee587a71277fcac363349100 Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Tue, 16 Jan 2024 21:47:44 +0100 Subject: [PATCH] Set the alternative key binding C-c C-o from a mode hook --- README.org | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 9956e5d..09fcb3b 100644 --- a/README.org +++ b/README.org @@ -188,9 +188,13 @@ One of those bindings is =C-c C-o=, which flushes the last output. However, this If you recognize this confusion, you may want to add the following line to your configuration file to shadow the =comint-mode= binding with something more appropriate: #+begin_src elisp - (keymap-set fastgpt-shell-mode-map "C-c C-o" #'browse-url-at-point) + (add-hook 'fastgpt-shell-mode-hook + (lambda () + (keymap-set fastgpt-shell-mode-map "C-c C-o" #'browse-url-at-point))) #+end_src +Because the =fastgpt-shell-mode-map= only becomes available when =kagi-fastgpt-shell= has been invoked, the keybinding is done in a mode hook. + * Changelog ** 0.3pre