1

This question already has an answer here:

I'd like to use M-<arrows> to move around windows in Emacs gtk, so I have added

(windmove-default-keybindings 'meta)

to my init.el. However, this is overridden by other modes such as elpy. Is there any direct way to give such a command absolute priority on keybindings, ignoring other modes' own keybindings?

marked as duplicate by Tyler, DoMiNeLa10 Aug 16 at 18:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You can disable the mode-specific keybindings explicitly with for example

(define-key elpy-mode "M-<left>" nil)
(define-key elpy-mode "M-<right>" nil)

Not the answer you're looking for? Browse other questions tagged or ask your own question.