Added evil integration to haskell-mode

Overwrite the 'o' and 'O' normal mode commands to correctly indent
new lines.
Code was adapted from: https://github.com/haskell/haskell-mode/issues/1265
This commit is contained in:
nam3less 2020-01-11 00:42:18 +01:00
parent 18301b0b9a
commit 18c50cbe1c
2 changed files with 21 additions and 0 deletions

View file

@ -32,6 +32,10 @@
(add-to-list 'completion-ignored-extensions ".hi")
(map! :map haskell-mode-map
"o" #'+haskell/evil-open-below
"O" #'+haskell/evil-open-above)
(map! :localleader
:map haskell-mode-map
;; this is set to use cabal for dante users and stack for intero users: