diff options
author | Nathan Bouscal <nbouscal@gmail.com> | 2014-03-19 09:38:19 -0400 |
---|---|---|
committer | Nathan Bouscal <nbouscal@gmail.com> | 2014-03-19 09:38:19 -0400 |
commit | 3f06fb4b6287ff489f4d5c92184f058edeb183d8 (patch) | |
tree | 26c3ebe32e0c32b2213b3919f5abb92c0903c1ce /README.markdown | |
parent | 5f5583a2302a236936644887b70ab6c721adbec1 (diff) | |
download | stylish-haskell-3f06fb4b6287ff489f4d5c92184f058edeb183d8.tar.gz |
Reference vim-stylish-haskell in VIM integration
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/README.markdown b/README.markdown index 2bc3ca6..9580617 100644 --- a/README.markdown +++ b/README.markdown @@ -100,19 +100,10 @@ Just call or add a keybinding for it. -To run stylish-haskell each time you save a .hs file, add this to your .vimrc: - - augroup stylish-haskell - autocmd! - autocmd BufWritePost *.hs call s:StylishHaskell() - augroup END - - function! s:StylishHaskell() - let cursor_position = getpos('.') - %!stylish-haskell - call setpos('.', cursor_position) - endfunction +There is also the [vim-stylish-haskell] plugin, which runs stylish-haskell +automatically when you save a Haskell file. +[vim-stylish-haskell]: https://github.com/nbouscal/vim-stylish-haskell Emacs integration ----------------- |