Set the alternative key binding C-c C-o from a mode hook
This commit is contained in:
parent
d75542ac7f
commit
7f89fdbf9b
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue