How to get Emacs Live to recognize Hoplon (hl)?

204 Views Asked by At

Does anyone know how I can get Emacs Live to recognize Hoplon (hl)? These hl files should be treated as a clojurescript file.

2

There are 2 best solutions below

0
On

As stated in the comment(s),

(add-to-list 'auto-mode-alist '("\\.hl" . clojurescript-mode))

Should do the trick.

1
On

If you use both HTML and s-expression syntax you may want to use the .cljs.hl and .html.hl extensions to help emacs differentiate between them. So you may want something like:

(add-to-list 'auto-mode-alist '("\\.html\\.hl\\'" . html-mode))
(add-to-list 'auto-mode-alist '("\\.cljs\\.hl\\'" . clojure-mode))