lang/javascript: mode-name = JS2

A shorter name looks nicer in the modeline.
This commit is contained in:
Henrik Lissner 2019-01-08 00:37:53 -05:00
parent 37cb0e178c
commit 7645f843ac
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -47,7 +47,9 @@
(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
(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-electric! 'js2-mode :chars '(?\} ?\) ?. ?:))
(set-repl-handler! 'js2-mode #'+javascript/repl) (set-repl-handler! 'js2-mode #'+javascript/repl)