Does not allow C-cC-c when hlint does not exist.
This commit is contained in:
parent
cd708e28f6
commit
6e6e1c9ad7
@ -43,10 +43,13 @@
|
|||||||
|
|
||||||
(defun ghc-flymake-toggle-command ()
|
(defun ghc-flymake-toggle-command ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(setq ghc-flymake-command (not ghc-flymake-command))
|
(if (and (null ghc-flymake-command)
|
||||||
(if ghc-flymake-command
|
(not ghc-hlint))
|
||||||
(message "Syntax check with hlint")
|
(message "\"hlint\" not found")
|
||||||
(message "Syntax check with GHC")))
|
(setq ghc-flymake-command (not ghc-flymake-command))
|
||||||
|
(if ghc-flymake-command
|
||||||
|
(message "Syntax check with hlint")
|
||||||
|
(message "Syntax check with GHC"))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user