The key binding \ of the function w3m-show-source
interferes with the function with the same key binding hydra-master-body
(which I set up in the init
file). I have used the function global-set-key
to change the key binding of w3m-show-source
to ctrl-,. Now the function w3m-show-source
has two key bindings \ and ctrl-,. How can I remove \ from the function w3m-show-source
so that it will execute hydra-master-body
?
1 Answer
Find out the solution. The command was (add-hook 'w3m-mode-hook (lambda () (define-key w3m-mode-map (kbd "\\") nil)))
(define-key w3m-view-source [\\] nil)
unsuccessfully.define-key
in your comment is missing a KEYMAP arg. And[\\]
is not what you want. Did you try(global-set-key (kbd "\\") nil)
? Or did you try(global-unset-key (kbd "\\"))
? Your question is unclear/incomplete. We can't answer the question until we know what you're asking and what you've tried.(global-set-key (kbd "\\") nil)
and(global-unset-key (kbd "\\"))
are not working simply because Unbind C-RET in emacs? is unrelated to the problem. The"\\"
inw3m
is interfering with my main hydra command. When I am in w3m and want to call hydra, I get the source of the web page instead. I don't want that,