lang/javascript: add colon to electric chars
This commit is contained in:
parent
cef82fe0b0
commit
ff5d63b5a6
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
(add-hook! 'js2-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
(add-hook! 'js2-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
||||||
|
|
||||||
(set! :electric 'js2-mode :chars '(?\} ?\) ?.))
|
(set! :electric 'js2-mode :chars '(?\} ?\) ?. ?:))
|
||||||
|
|
||||||
;; Conform switch-case indentation to js2 normal indent
|
;; Conform switch-case indentation to js2 normal indent
|
||||||
(defvaralias 'js-switch-indent-offset 'js2-basic-offset)
|
(defvaralias 'js-switch-indent-offset 'js2-basic-offset)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue