js: electric-indent-mode + update Dash docset
This commit is contained in:
parent
848acfc2ea
commit
ca5097771b
1 changed files with 6 additions and 1 deletions
|
@ -8,7 +8,12 @@
|
||||||
:config (evil-set-initial-state 'nodejs-repl-mode 'emacs))
|
:config (evil-set-initial-state 'nodejs-repl-mode 'emacs))
|
||||||
|
|
||||||
(define-repl! js2-mode nodejs-repl)
|
(define-repl! js2-mode nodejs-repl)
|
||||||
(define-docset! js2-mode "js,javascript,nodejs,angularjs")
|
(define-docset! js2-mode "js,javascript,nodejs,angularjs,express,jquery,mongoose")
|
||||||
|
|
||||||
|
(add-hook! js2-mode
|
||||||
|
(electric-indent-local-mode +1)
|
||||||
|
(setq electric-indent-chars '(?} ?\) ?.)
|
||||||
|
narf-electric-indent-words '("||" "&&")))
|
||||||
:config
|
:config
|
||||||
(setq-default
|
(setq-default
|
||||||
js2-skip-preprocessor-directives t
|
js2-skip-preprocessor-directives t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue