Moved intero map

This commit is contained in:
Patrick Elliott 2018-07-19 11:02:26 +02:00
parent b0a754391a
commit dc68d7aad8
2 changed files with 9 additions and 11 deletions

View file

@ -16,4 +16,12 @@ This is necessary because `intero-mode' doesn't do its own error checks."
(setq haskell-compile-cabal-build-command "stack build --fast") (setq haskell-compile-cabal-build-command "stack build --fast")
(set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition) (set-lookup-handlers! 'intero-mode :definition #'intero-goto-definition)
(when (featurep! :feature syntax-checker) (when (featurep! :feature syntax-checker)
(flycheck-add-next-checker 'intero '(warning . haskell-hlint)))) (flycheck-add-next-checker 'intero '(warning . haskell-hlint)))
(map! :map intero-mode-map
:localleader
:n "t" #'intero-type-at
:n "i" #'intero-info
:n "l" #'intero-repl-load
:nv "e" #'intero-repl-eval-region
:n "a" #'intero-apply-suggestions))

View file

@ -19,16 +19,6 @@
:n "p" #'hindent-reformat-buffer :n "p" #'hindent-reformat-buffer
:v "p" #'hindent-reformat-region)) :v "p" #'hindent-reformat-region))
(after! intero-mode
(map! :map intero-mode-map
:localleader
:n "t" #'intero-type-at
:n "i" #'intero-info
:n "l" #'intero-repl-load
:n "e" #'intero-repl-eval-region
:v "e" #'intero-repl-eval-region
:n "a" #'intero-apply-suggestions))
(after! dante-mode (after! dante-mode
(map! :map dante-mode-map (map! :map dante-mode-map
:localleader :localleader