I use elpy
as Python IDE. I want M-<left>
and M-<right>
(M = alt) not to be overridden by elpy with elpy-nav-indent-shift-left
and elpy-nav-indent-shift-left
but insted bind these to something else.
Here's what I tried in my .emacs
:
(eval-after-load "elpy"
'(progn
(define-key elpy-mode-map (kbd "M-<left>") nil)
(define-key elpy-mode-map (kbd "M-<right>") nil)
(define-key elpy-mode-map (kbd "M-s-<left>") (elpy-nav-indent-shift-left))
(define-key elpy-mode-map (kbd "M-s-<right>") (elpy-nav-indent-shift-right))
))
M-<left>
and M-<right>
now do left-word
and right-word
as intended. The other bindings however just yield
<M-s-left> is undefined
<M-s-right> is undefined
Why is it not working?