
2 Aug
2007
2 Aug
'07
9:23 a.m.
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) Regards, / Thomas