mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user