adjust evil-shift-width the same as coffee-tab-width in coffee mode

This commit is contained in:
Daniel Wu 2014-11-15 21:12:33 -05:00
parent e1cc9bf708
commit 0d685e4a8f

View file

@ -1895,5 +1895,6 @@ determine the state to enable when escaping from the insert state.")
(coffee-insert-spaces (coffee-previous-indent)))
)
;; indent to right position after `evil-open-blow' and `evil-open-above'
(add-hook 'coffee-mode-hook '(lambda () (setq indent-line-function 'spacemacs/coffee-indent)))
)))
(add-hook 'coffee-mode-hook '(lambda ()
(setq indent-line-function 'spacemacs/coffee-indent
evil-shift-width coffee-tab-width))))))