Fork me on GitHub
#emacs
<
2024-06-02
>
Akiz20:06:56

Is there a more recommended way to make clojure-ts-mode default with cider than manually adding another entry to auto-mode-alist like (add-to-list 'auto-mode-alist '("\\.\\(clj\\|cljd\\|dtm\\|edn\\|lpy\\)\\'" . clojure-ts-mode)) ?

jasonjckn00:06:28

treesit-auto.el does this for you.

jasonjckn00:06:31

some of those extensions aren't covered though , you'll have to check source code.

jasonjckn00:06:42

dtm, lpy, probably not.

Akiz07:06:35

@U0J3J79FE I didn't see mentioned in any tutorial how to resolve the autoload of the cider that assigns clojure-mode to the mentioned file extensions. I'm not sure if an external package is a better way than defining autoload myself.