default indent width of web/js mode fixed

This commit is contained in:
Sameer Rahmani 2015-07-21 13:33:05 +04:30
parent 82a1443fc0
commit b41d9fc17b
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,10 @@
(require 'jquery-doc)
(js2-minor-mode t)
;; FIXME: don't hard code the indent size
(setq js2-basic-offset 2)
(setq js2-bounce-indent-p t)
(tern-mode t)
(jquery-doc-setup))

View File

@ -8,12 +8,16 @@
'company-backends) '(company-web-html))
(define-key web-mode-map (kbd "C-'") 'company-web-html))
(setq web-mode-css-indent-offset 2)
(setq web-mode-code-indent-offset 2)
(setq web-mode-markup-indent-offset 2))
;;;###autoload
(defun extensions/web-activate-modes ()
"Activate necessary modes"
(setq css-indent-offset 2)
(with-ability rainbow
(rainbow-mode t))