Emacs tips: Navigate CamelCase words
Emacs tip #0: Always search EmacsWiki when you think you might need something.
Emacs tip #1: To navigate studlyCapped words, M-x c-subword-mode
, as found on the CamelCase page. I had to add the following lines to my .emacs
to get it work with C-left
/C-right
, M-b
/M-f
worked right out of the box:
(define-key global-map [(control right)] 'forward-word)
(define-key global-map [(control left)] 'backward-word)
Before that, they were bound to the -nomark
variants.
6 January 2009