Emacs/Formatting: Difference between revisions
< Emacs
(→On Save: Rewording on save.) |
(→Stylish Haskell: Linked to C-x C-s note.) |
||
Line 7: | Line 7: | ||
== On Save == | == On Save == | ||
To call it for every 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.]] | ||
To enable Stylish Haskell, pop the following somewhere in your Emacs configuration: | To enable Stylish Haskell, pop the following somewhere in your Emacs configuration: |
Revision as of 18:39, 28 May 2012
Stylish Haskell
Use M-x haskell-mode-stylish-buffer
to call stylish-haskell on the current buffer.
On Save
To call it for every save, make sure you have C-x C-s rebound to 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 M-x customize-group haskell
and pretend none of this exists!