Possible Duplicate:
Associating a function in Emacs after looking up the code with M-x describe-key
I have typed the following macros on my .emacs
file
(global-set-key (kbd "M-<left>") 'windmove-left) ; move to left windnow
(global-set-key (kbd "M-<right>") 'windmove-right) ; move to right window
(global-set-key (kbd "M-<up>") 'windmove-up) ; move to upper window
(global-set-key (kbd "M-<down>") 'windmove-down) ; move to lower window
However, when I press Alt+left or any of the other keyboard combinations, I get errors like the following in the minibuffer M-o 3 c is undefined
.
Why doesn't it work? I thought I was following the syntax described here (kbd
macro).
kbd
documentation I point to (and the same link you included in your answer) shows specifically an example with(kbd "C-M-<down>")
. If so, why do I have to drop the angle brackets? – Amelio Vazquez-Reina Sep 7 '12 at 22:16<...>
", and gives<down>
as an example for the input tokbd
(bottom of the page). – Amelio Vazquez-Reina Sep 7 '12 at 22:18"\eO3c"
isM-left
ininput-decode-map
and so on. Is that close enough for a duplicate, or do you need a more precise answer? – Gilles 'SO- stop being evil' Sep 7 '12 at 22:22