Fix issue disabling white-space-mode.

This commit is contained in:
Gabriel J. Pérez Irizarry 2013-08-01 12:58:19 -04:00
parent 1f141e9b08
commit 8a182d8dd3

View file

@ -49,15 +49,14 @@
(eval-after-load 'web-mode
'(progn
(defun prelude-web-mode-defaults ()
;; Disable whitespace-mode when using web-mode
(whitespace-mode -1)
;; Customizations
(setq web-mode-markup-indent-offset 4)
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 4)
(setq web-mode-disable-autocompletion t)
(local-set-key (kbd "RET") 'newline-and-indent)
;; Disable whitespace-mode when using web-mode
(lambda () (whitespace-mode -1)))
(local-set-key (kbd "RET") 'newline-and-indent))
(setq prelude-web-mode-hook 'prelude-web-mode-defaults)
(add-hook 'web-mode-hook (lambda ()