lang/javascript: mode-name = JS2
A shorter name looks nicer in the modeline.
This commit is contained in:
parent
37cb0e178c
commit
7645f843ac
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@
|
|||
|
||||
(add-hook 'js2-mode-hook #'rainbow-delimiters-mode)
|
||||
;; Indent switch-case another step
|
||||
(setq-hook! 'js2-mode-hook js-switch-indent-offset js2-basic-offset)
|
||||
(setq-hook! 'js2-mode-hook
|
||||
js-switch-indent-offset js2-basic-offset
|
||||
mode-name "JS2")
|
||||
|
||||
(set-electric! 'js2-mode :chars '(?\} ?\) ?. ?:))
|
||||
(set-repl-handler! 'js2-mode #'+javascript/repl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue