diff --git a/layers/+lang/haskell/packages.el b/layers/+lang/haskell/packages.el index f2f482acc4a8..577a7e1238ee 100644 --- a/layers/+lang/haskell/packages.el +++ b/layers/+lang/haskell/packages.el @@ -69,6 +69,9 @@ (add-hook 'haskell-cabal-mode-hook 'haskell-cabal-hook) (unless haskell-enable-shm-support (add-hook 'haskell-mode-hook 'haskell-indentation-mode)) + (add-hook 'haskell-interactive-mode-hook + (lambda () + (setq-local evil-move-cursor-back nil))) ;; settings (setq @@ -92,6 +95,10 @@ (haskell-mode-show-type-at 1) (haskell-process-do-type 1))) + (defadvice haskell-interactive-switch (after spacemacs/haskell-interactive-switch-advice activate) + (when (eq dotspacemacs-editing-style 'vim) + (call-interactively 'evil-insert))) + (evil-leader/set-key-for-mode 'haskell-mode "mgg" 'haskell-mode-jump-to-def-or-tag "mf" 'haskell-mode-stylish-buffer