From e6156f1e8193b0f678db08d9c2a6a1f055a8239e Mon Sep 17 00:00:00 2001 From: kiripon Date: Tue, 7 Oct 2014 18:22:08 +0900 Subject: [PATCH] enable syntax check on save in literate haskell mode --- elisp/ghc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elisp/ghc.el b/elisp/ghc.el index a54d58683..863c786e3 100644 --- a/elisp/ghc.el +++ b/elisp/ghc.el @@ -117,7 +117,8 @@ (setq ghc-initialized t) (defadvice save-buffer (after ghc-check-syntax-on-save activate) "Check syntax with GHC when a haskell-mode buffer is saved." - (when (eq 'haskell-mode major-mode) (ghc-check-syntax)))) + (when (member major-mode '(haskell-mode literate-haskell-mode)) + (ghc-check-syntax)))) (ghc-import-module) (ghc-check-syntax))