Skip to content

Commit

Permalink
Fix snippet for treesitter remapping of js2-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 2, 2023
1 parent 04ad959 commit 29f07b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lisp/init-treesitter.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@


;; When there's js-ts-mode, we prefer it to js2-mode
(when-let (jsmap (assoc 'js-mode major-mode-remap-alist))
(push (cons 'js2-mode (cdr jsmap)) major-mode-remap-alist))
(when-let (jsmap (alist-get 'js-mode major-mode-remap-alist))
(add-to-list 'major-mode-remap-alist (cons 'js2-mode jsmap)))



Expand Down

0 comments on commit 29f07b5

Please sign in to comment.