mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
js: electric-indent-mode + update Dash docset
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user