Error when reassigning the ESC key in isearch-mode of Emacs -
i follow instruction of god-mode in emacs reassign esc key isearch-mode-map
, god-mode-isearch-map
encounter following error
error: key sequence
<escape> <tab>
starts non-prefix key<escape>
the relevant code in emacs init file is:
(require 'god-mode-isearch) (define-key isearch-mode-map (kbd "<escape>") 'god-mode-isearch-activate) (define-key god-mode-isearch-map (kbd "<escape>") 'god-mode-isearch-disable)
the problem comes second line (define-key isearch-mode-map (kbd "<escape>") 'god-mode-isearch-activate)
. if line commented out, no error reported, cannot reassign <escape>
key of isearch-mode
i did try google un-set <escape>
key haven't been able resolve it.
is there know how fix it?
thanks taking time @ question!
Comments
Post a Comment