Closed yoeluk closed 9 years ago
The easiest way I think is to use with-eval-after-load
if you are using Emacs 24.4 or later. (Otherwise use eval-after-load
instead)
(with-eval-after-load 'company
(add-to-list 'company-backends 'company-ghc))
Alternatively, haskell-mode-hook can be used.
(add-hook 'haskell-mode-hook
(lambda ()
(ghc-init)
(add-to-list (make-local-variable 'company-backends) 'company-ghc)))
Thanks a lot with-eval-after-load
worked perfectly!
(with-eval-after-load 'company (add-to-list 'company-backends 'company-ghc))
Thanks! Helped for me too!
Hi there, I am trying to set up company-ghc in Aquamacs and I get this error/warning when starting up aquamacs. Does anyone know what am I missing? Thanks.
I have this configuration on
`~/.emacs
The
company-ghc-diagnostic-info
cmd shows thisThe
ghc-debug
cmd shows this