Skip to content

Commit 0a977a3

Browse files
committed
Upgrade js2-mode
1 parent 5abec1b commit 0a977a3

File tree

4 files changed

+5423
-4142
lines changed

4 files changed

+5423
-4142
lines changed

personal/init-colors.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
(add-hook 'js2-mode-hook
1919
(lambda ()
20-
(set-face-foreground 'js2-external-variable-face "#ff0000")
21-
(set-face-foreground 'js2-function-param-face "#fce94f")))
20+
(set-face-foreground 'js2-external-variable "#ff0000")
21+
(set-face-foreground 'js2-function-param "#fce94f")))
2222

2323
(add-hook 'magit-mode-hook
2424
(lambda ()
@@ -53,8 +53,8 @@
5353
(custom-set-faces
5454
'(flymake-errline ((((class color)) (:underline "red"))))
5555
'(flymake-warnline ((((class color)) (:underline "orange"))))
56-
'(js2-error-face ((((class color)) (:underline "red"))))
57-
'(js2-warning-face ((((class color)) (:underline "orange")))))
56+
'(js2-error ((((class color)) (:underline "red"))))
57+
'(js2-warning ((((class color)) (:underline "orange")))))
5858

5959
(when window-system
6060
;; Fancy color map for shell-mode, etc.

personal/init-javascript.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
(esk-prog-mode-hook)
66
(define-key js2-mode-map (kbd "RET") nil)))
77

8+
(add-to-list 'auto-mode-alist '("\\.jsx$" . js-mode))
9+
810
(setq js2-enter-indents-newline t)
911
(setq js2-mirror-mode nil)

0 commit comments

Comments
 (0)