Skip to content

Instantly share code, notes, and snippets.

@zeta-00
Created January 17, 2020 20:11
Show Gist options
  • Save zeta-00/7dd5529ff8cd1ae077d356315bb39f60 to your computer and use it in GitHub Desktop.
Save zeta-00/7dd5529ff8cd1ae077d356315bb39f60 to your computer and use it in GitHub Desktop.
(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