Add config for web-mode and js2-mode
This commit is contained in:
parent
d1a383de3a
commit
1ec4ab9eea
@ -546,6 +546,18 @@
|
|||||||
(setq jdee-server-dir "~/.emacs.d/jdee-server/target"
|
(setq jdee-server-dir "~/.emacs.d/jdee-server/target"
|
||||||
jdee-mode-line-format mode-line-format))
|
jdee-mode-line-format mode-line-format))
|
||||||
|
|
||||||
|
(use-package web-mode
|
||||||
|
:mode "\\.html?\\'"
|
||||||
|
:config
|
||||||
|
(setq web-mode-markup-indent-offset 2
|
||||||
|
web-mode-css-indent-offset 2
|
||||||
|
web-mode-code-indent-offset 2))
|
||||||
|
|
||||||
|
(use-package js2-mode
|
||||||
|
:mode "\\.js\\'"
|
||||||
|
:config
|
||||||
|
(setq js2-basic-offset 2))
|
||||||
|
|
||||||
;;; Local Variables
|
;;; Local Variables
|
||||||
(add-to-list 'safe-local-eval-forms '(outline-hide-body))
|
(add-to-list 'safe-local-eval-forms '(outline-hide-body))
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
|
Loading…
Reference in New Issue
Block a user