Good Haskell Style
nominolo at googlemail.com
Thu Aug 2 05:23:52 EDT 2007
On 2 aug 2007, at 09.50, Simon Peyton-Jones wrote:
> Is there an emacs mode or Lisp-blob that lets you use TAB to go to
> the next n-col boundary, but expands the jump into spaces.
> In emacs modes, TAB usually does all sorts of other snazzy things
> concerning layout, which I don't want. I just want something that
> behaves like old-fashioned TAB, but generates a file with spaces.
This should work:
;; tabs are evil, always use spaces instead
(setq indent-tabs-mode nil)
;; in your haskell-mode-hook:
(define-key haskell-mode-map [tab] 'indent-for-tab-command)
More information about the Libraries