Merge pull request #369 from climatewarrior/add-web-mode

Fix issue disabling white-space-mode.
This commit is contained in:
Bozhidar Batsov 2013-08-01 14:31:21 -07:00
commit 2a6d240ce4

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 ()