Initialize it globally and turn it off where needed, instead of enabling it on demand. Also fixes void-function: flycheck-mode errors when :feature syntax-checker is disabled. This is experimental. Indirectly fixes #710
18 lines
482 B
EmacsLisp
18 lines
482 B
EmacsLisp
;;; lang/haskell/+dante.el -*- lexical-binding: t; -*-
|
|
;;;###if (featurep! +dante)
|
|
|
|
(def-package! dante
|
|
:after haskell-mode
|
|
:hook (haskell-mode . dante-mode)
|
|
:config
|
|
(add-hook 'haskell-mode-hook #'interactive-haskell-mode))
|
|
|
|
|
|
(def-package! company-ghc
|
|
:when (featurep! :completion company)
|
|
:after haskell-mode
|
|
:init
|
|
(add-hook 'haskell-mode-hook #'ghc-comp-init)
|
|
:config
|
|
(setq company-ghc-show-info 'oneline)
|
|
(set-company-backend! 'haskell-mode #'company-ghc))
|