From d990cd9bd57fccdf19a2f78038b8203b7b97447e Mon Sep 17 00:00:00 2001 From: nam3less Date: Sat, 11 Jan 2020 01:08:28 +0100 Subject: [PATCH] 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 --- modules/lang/haskell/autoload.el | 2 +- modules/lang/haskell/config.el | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/lang/haskell/autoload.el b/modules/lang/haskell/autoload.el index ccb5033c8..370e5ed91 100644 --- a/modules/lang/haskell/autoload.el +++ b/modules/lang/haskell/autoload.el @@ -14,7 +14,7 @@ (error "Failed to display Haskell REPL"))) ;;;###autoload -(defun +haskell/evil-open-above +(defun +haskell/evil-open-above () "Opens a line above the current mode" (interactive) (evil-digit-argument-or-evil-beginning-of-line) diff --git a/modules/lang/haskell/config.el b/modules/lang/haskell/config.el index bd0d6661a..b4615e621 100644 --- a/modules/lang/haskell/config.el +++ b/modules/lang/haskell/config.el @@ -33,8 +33,8 @@ (add-to-list 'completion-ignored-extensions ".hi") (map! :map haskell-mode-map - "o" #'+haskell/evil-open-below - "O" #'+haskell/evil-open-above) + :n "o" #'+haskell/evil-open-below + :n "O" #'+haskell/evil-open-above) (map! :localleader :map haskell-mode-map