forked from FG42/FG42
default indent width of web/js mode fixed
This commit is contained in:
parent
82a1443fc0
commit
b41d9fc17b
|
@ -4,6 +4,10 @@
|
||||||
(require 'jquery-doc)
|
(require 'jquery-doc)
|
||||||
|
|
||||||
(js2-minor-mode t)
|
(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)
|
(tern-mode t)
|
||||||
(jquery-doc-setup))
|
(jquery-doc-setup))
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,16 @@
|
||||||
'company-backends) '(company-web-html))
|
'company-backends) '(company-web-html))
|
||||||
|
|
||||||
(define-key web-mode-map (kbd "C-'") '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))
|
(setq web-mode-markup-indent-offset 2))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun extensions/web-activate-modes ()
|
(defun extensions/web-activate-modes ()
|
||||||
"Activate necessary modes"
|
"Activate necessary modes"
|
||||||
|
(setq css-indent-offset 2)
|
||||||
|
|
||||||
(with-ability rainbow
|
(with-ability rainbow
|
||||||
(rainbow-mode t))
|
(rainbow-mode t))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue