I'm trying to remap some keys in
help-map, but the following does not work:
(define-key help-map [remap describe-mode] #'my-describe-mode)
Remapping in the global map does work, however:
(global-set-key [remap describe-mode] #'my-describe-mode)
Why is this? I can see that the value of
describe-mode when I call
help-map is a variable defined in `help.el'. Its value is shown below. This variable may be risky if used as a file-local variable. Documentation: Keymap for characters following the Help key. Value: (keymap (remap keymap (describe-mode . my-describe-mode)) ... (109 . describe-mode) ...
Does it have something to do with
C-h being a prefix key?