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:
parent
18c50cbe1c
commit
d990cd9bd5
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@
|
||||||
(error "Failed to display Haskell REPL")))
|
(error "Failed to display Haskell REPL")))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +haskell/evil-open-above
|
(defun +haskell/evil-open-above ()
|
||||||
"Opens a line above the current mode"
|
"Opens a line above the current mode"
|
||||||
(interactive)
|
(interactive)
|
||||||
(evil-digit-argument-or-evil-beginning-of-line)
|
(evil-digit-argument-or-evil-beginning-of-line)
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
(add-to-list 'completion-ignored-extensions ".hi")
|
(add-to-list 'completion-ignored-extensions ".hi")
|
||||||
|
|
||||||
(map! :map haskell-mode-map
|
(map! :map haskell-mode-map
|
||||||
"o" #'+haskell/evil-open-below
|
:n "o" #'+haskell/evil-open-below
|
||||||
"O" #'+haskell/evil-open-above)
|
:n "O" #'+haskell/evil-open-above)
|
||||||
|
|
||||||
(map! :localleader
|
(map! :localleader
|
||||||
:map haskell-mode-map
|
:map haskell-mode-map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue