Difference between revisions of "Emacs/Formatting"

From HaskellWiki
Jump to navigation Jump to search
(Blanked the page)
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
= Stylish Haskell =
To use [https://github.com/jaspervdj/stylish-haskell Stylish Haskell] on your Emacs before every save, you first need <code>haskell-mode-save-buffer</code>. It is recommended to rebind <code>C-x C-s</code> in haskell-mode to this. Add the following in your <code>haskell-mode-hook</code>.
(define-key haskell-mode-map (kbd "C-x C-s") 'haskell-mode-save-buffer)
To enable Stylish Haskell, pop the following somewhere in your Emacs configuration:
(setq haskell-stylish-on-save t)
Or in your custom set variables:
(custom-set-variables '(haskell-stylish-on-save t))
Or you can <code>M-x customize-group haskell</code> and pretend none of this exists!

Latest revision as of 11:58, 11 April 2016