Replace warn => warn!
This commit is contained in:
parent
5ad4246cb9
commit
bac73ec938
11 changed files with 31 additions and 31 deletions
|
@ -5,11 +5,9 @@
|
|||
:after haskell-mode
|
||||
:hook (haskell-mode . dante-mode)
|
||||
:config
|
||||
(add-hook 'haskell-mode-hook #'interactive-haskell-mode)
|
||||
|
||||
(unless (executable-find "cabal")
|
||||
(warn "haskell-mode: couldn't find cabal")
|
||||
(remove-hook 'haskell-mode-hook #'dante-mode))
|
||||
(warn! "Couldn't find cabal, haskell-mode may have issues"))
|
||||
|
||||
(add-hook 'haskell-mode-hook #'interactive-haskell-mode)
|
||||
(add-hook 'dante-mode-hook #'flycheck-mode))
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
:hook (haskell-mode . intero-mode)
|
||||
:config
|
||||
(unless (executable-find "stack")
|
||||
(warn "haskell-mode: couldn't find stack, disabling intero")
|
||||
(remove-hook 'haskell-mode-hook #'intero-mode))
|
||||
(warn! "Couldn't find stack. Intero has been disabled."))
|
||||
|
||||
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
|
||||
|
||||
|
|
|
@ -31,10 +31,9 @@
|
|||
:init
|
||||
(add-hook 'haskell-mode-hook #'ghc-comp-init)
|
||||
:config
|
||||
(if (executable-find "ghc-mod")
|
||||
(set! :company-backend 'haskell-mode #'company-ghc)
|
||||
(warn "haskell-mode: couldn't find ghc-mod on PATH")
|
||||
(remove-hook 'haskell-mode-hook #'ghc-comp-init))
|
||||
(unless (executable-find "ghc-mod")
|
||||
(warn! "Couldn't find ghc-mod on PATH. Code completion is disabled."))
|
||||
|
||||
(setq company-ghc-show-info 'oneline))
|
||||
(setq company-ghc-show-info 'oneline)
|
||||
(set! :company-backend 'haskell-mode #'company-ghc))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue