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?
Asked
Active
Viewed 70 times
0
Drew
- 77,472
- 10
- 114
- 243
Enrico Pirani
- 367
- 2
- 10
1 Answers
1
Find out the solution. The command was (add-hook 'w3m-mode-hook (lambda () (define-key w3m-mode-map (kbd "\\") nil)))
Enrico Pirani
- 367
- 2
- 10
(define-key w3m-view-source [\\] nil)unsuccessfully. – Enrico Pirani Jan 11 '21 at 11:53define-keyin 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. – Drew Jan 11 '21 at 19:05(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"\\"inw3mis 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, – Enrico Pirani Jan 12 '21 at 23:31