lang/javascript: attempt more fontification
This commit is contained in:
parent
f51f2948af
commit
ecb01dbdfc
1 changed files with 4 additions and 2 deletions
|
@ -28,7 +28,6 @@
|
||||||
:commands js2-line-break
|
:commands js2-line-break
|
||||||
:config
|
:config
|
||||||
(setq js2-skip-preprocessor-directives t
|
(setq js2-skip-preprocessor-directives t
|
||||||
js2-highlight-external-variables nil
|
|
||||||
js-chain-indent t
|
js-chain-indent t
|
||||||
;; let flycheck handle this
|
;; let flycheck handle this
|
||||||
js2-mode-show-parse-errors nil
|
js2-mode-show-parse-errors nil
|
||||||
|
@ -36,7 +35,10 @@
|
||||||
;; Flycheck provides these features, so disable them: conflicting with
|
;; Flycheck provides these features, so disable them: conflicting with
|
||||||
;; the eslint settings.
|
;; the eslint settings.
|
||||||
js2-strict-trailing-comma-warning nil
|
js2-strict-trailing-comma-warning nil
|
||||||
js2-strict-missing-semi-warning nil)
|
js2-strict-missing-semi-warning nil
|
||||||
|
;; maximum fontification
|
||||||
|
js2-highlight-level 3
|
||||||
|
js2-highlight-external-variables t)
|
||||||
|
|
||||||
(add-hook 'js2-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'js2-mode-hook #'rainbow-delimiters-mode)
|
||||||
;; Indent switch-case another step
|
;; Indent switch-case another step
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue