Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
takeokunn committed Aug 21, 2024
1 parent 6210cdf commit d2a3f1f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.org
Original file line number Diff line number Diff line change
Expand Up @@ -1830,8 +1830,13 @@

(autoload-if-found '(js2-mode) "js2-mode" nil t)

(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.mjs$" . js2-mode))
;; js-mode
(add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
(add-to-list 'auto-mode-alist '("\\.mjs$" . js-mode))

;; js2-mode
;; (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
;; (add-to-list 'auto-mode-alist '("\\.mjs$" . js2-mode))

(with-eval-after-load 'js2-mode
;; config
Expand Down

0 comments on commit d2a3f1f

Please sign in to comment.