Skip to content

Commit

Permalink
When we have clojure-ts-mode, prefer clojurescript-ts-mode too
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 11, 2023
1 parent b9ec84c commit 6163387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lisp/init-treesitter.el
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Return a list of languages seen along the way."
(when-let ((jsmap (alist-get 'js-mode major-mode-remap-alist)))
(add-to-list 'major-mode-remap-alist (cons 'js2-mode jsmap)))

(when-let ((jsmap (alist-get 'clojure-mode major-mode-remap-alist)))
(add-to-list 'major-mode-remap-alist (cons 'clojurescript-mode 'clojurescript-ts-mode)))



;; Default
Expand Down

0 comments on commit 6163387

Please sign in to comment.