1

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?

  • the top answer for https://emacs.stackexchange.com/questions/352/how-to-override-major-mode-bindings should address your problem – Tyler Aug 16 '19 at 16:53

1 Answers1

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)