Difference between revisions of "Emacs/Formatting"

From HaskellWiki
Jump to navigation Jump to search
(Blanked the page)
Line 1: Line 1:
= Stylish Haskell =
Use <code>M-x haskell-mode-stylish-buffer</code> to call [https://github.com/jaspervdj/stylish-haskell stylish-haskell] on the current buffer.
== On Save ==
To call it for every save, [[Emacs/Keybindings_and_simple_usage#Rebind_C-x_C-s|make sure you have C-x C-s rebound to haskell-mode-save-buffer]], and then 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