Created
January 17, 2020 20:11
-
-
Save zeta-00/7dd5529ff8cd1ae077d356315bb39f60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook 'after-init-hook 'global-company-mode) | |
(add-hook 'haskell-mode-hook | |
(lambda () | |
(set (make-local-variable 'company-backends) | |
(append '((company-capf company-dabbrev-code)) | |
company-backends)))) | |
(require 'haskell-interactive-mode) | |
(require 'haskell-process) | |
(add-hook 'haskell-mode-hook 'interactive-haskell-mode) | |
(custom-set-variables | |
'(haskell-process-suggest-remove-import-lines t) | |
'(haskell-process-auto-import-loaded-modules t) | |
'(haskell-process-log t)) | |
(require 'company-ghci) | |
(push 'company-ghci company-backends) | |
(add-hook 'haskell-mode-hook 'company-mode) | |
;;; To get completions in the REPL | |
(add-hook 'haskell-interactive-mode-hook 'company-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment