electric-indent-local-mode is not always defined

This commit is contained in:
Jeremy Huffman 2015-06-19 22:00:13 -04:00 committed by syl20bnr
parent 50803f4bb9
commit 7f24d019a1

View file

@ -57,7 +57,8 @@
;; Haskell main editing mode key bindings.
(defun spacemacs/init-haskell-mode ()
;; use only internal indentation system from haskell
(electric-indent-local-mode -1))
(if (fboundp 'electric-indent-local-mode)
(electric-indent-local-mode -1)))
;; hooks
(add-hook 'haskell-mode-hook 'spacemacs/init-haskell-mode)