Changes between Version 3 and Version 4 of Tips
- Timestamp:
- 12/08/09 10:14:26 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tips
v3 v4 4 4 === Code navigation === 5 5 6 * By default, Emacs' commands acting on words treat camelCaseIdentifiers as a single unit. If you want to make Emacs recognise the subwords inside (so that, say, `M-f` will stop at "Case" in the previous example"), you can activate `capitalized-words-mode` , either by hand (`M-x capitalized-words-mode`) or adding a hookto `haskell-mode-hook` and/or `haskell-literate-mode-hook`:6 * By default, Emacs' commands acting on words treat camelCaseIdentifiers as a single unit. If you want to make Emacs recognise the subwords inside (so that, say, `M-f` will stop at "Case" in the previous example"), you can activate `capitalized-words-mode`. Note that this only works in Emacs 23 and the version in Emacs 23.1 is broken; get the [http://www.loveshack.ukfsn.org/emacs/cap-words.el fixed version of cap-words.el]. Activate it either by hand (`M-x capitalized-words-mode`) or by adding to `haskell-mode-hook` and/or `haskell-literate-mode-hook`: 7 7 {{{ 8 8 (add-hook 'haskell-mode-hook '(lambda () (capitalized-words-mode t))
