I'm trying to unbind
M-o in diff-mode with
use-package. To do that I've written:
(use-package diff :defer t :config (unbind-key "M-o" diff-mode-map))
Restarted Emacs 25, open a diff file, but
M-o still seems to be mapped to
diff-mode.el and found out that there is
diff-mode-shared-map which seems to have
M-o. So I did changed the map in the previous code to:
(use-package diff :defer t :config (unbind-key "M-o" diff-mode-shared-map))
But, it still does not work.
I've used the same snippet for other modes and they seem to work as I expected. Is diff-mode special?