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 (eval-after-load 'web-mode
'(progn '(progn
(defun prelude-web-mode-defaults () (defun prelude-web-mode-defaults ()
;; Disable whitespace-mode when using web-mode
(whitespace-mode -1)
;; Customizations ;; Customizations
(setq web-mode-markup-indent-offset 4) (setq web-mode-markup-indent-offset 4)
(setq web-mode-css-indent-offset 2) (setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 4) (setq web-mode-code-indent-offset 4)
(setq web-mode-disable-autocompletion t) (setq web-mode-disable-autocompletion t)
(local-set-key (kbd "RET") 'newline-and-indent) (local-set-key (kbd "RET") 'newline-and-indent))
;; Disable whitespace-mode when using web-mode
(lambda () (whitespace-mode -1)))
(setq prelude-web-mode-hook 'prelude-web-mode-defaults) (setq prelude-web-mode-hook 'prelude-web-mode-defaults)
(add-hook 'web-mode-hook (lambda () (add-hook 'web-mode-hook (lambda ()