Next: , Previous: Q3.5.10, Up: Customisation


Q3.5.11: How do I map the arrow keys?

Say you want to map C-<right> to forward-word:

Sam Steingold writes:

     ; both (S)XEmacs and Emacs
     (define-key global-map [(control right)] 'forward-word)

or

     ; Emacs only
     (define-key global-map [C-right] 'forward-word)

or

     ; ver > 20, both
     (define-key global-map (kbd "C-<right>") 'forward-word)