Does anyone know how I can get Emacs Live to recognize Hoplon (hl)? These hl files should be treated as a clojurescript file.
Asked
Active
Viewed 196 times
2 Answers
2
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))

Micha Niskin
- 197
- 1
- 10
-
Wouldn't it be `web-mode` instead of `html-mode`? – leontalbot Dec 27 '15 at 10:52
1
As stated in the comment(s),
(add-to-list 'auto-mode-alist '("\\.hl" . clojurescript-mode))
Should do the trick.

PythonNut
- 6,182
- 1
- 25
- 41