From 0d685e4a8f0aa8992a3349d36e1edff33dbad986 Mon Sep 17 00:00:00 2001 From: Daniel Wu Date: Sat, 15 Nov 2014 21:12:33 -0500 Subject: [PATCH] adjust evil-shift-width the same as coffee-tab-width in coffee mode --- spacemacs/packages.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacemacs/packages.el b/spacemacs/packages.el index 495645580..046efb9d6 100644 --- a/spacemacs/packages.el +++ b/spacemacs/packages.el @@ -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))))))