Version 2 (modified by jao@…, 5 years ago)

capitalized-words-mode

Some neat tips and tricks for using haskell-mode

Code navigation

  • 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 hook to haskell-mode-hook and/or haskell-literate-mode-hook:
        (add-hook 'haskell-mode-hook '(lambda () (capitalized-words-mode t))