1
0
Fork 0

Set the alternative key binding C-c C-o from a mode hook

This commit is contained in:
Bram Schoenmakers 2024-01-16 21:47:44 +01:00
parent d75542ac7f
commit 7f89fdbf9b

View file

@ -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