Skip to content

Commit e217634

Browse files
committed
Associate boot build scripts with clojure-mode
1 parent 6c83a48 commit e217634

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

clojure-mode.el

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,11 @@ Returns a list pair, e.g. (\"defn\" \"abc\") or (\"deftest\" \"some-test\")."
10621062
(match-string 2))))))
10631063

10641064
;;;###autoload
1065-
(add-to-list 'auto-mode-alist
1066-
'("\\.\\(clj[sx]?\\|dtm\\|edn\\)\\'" . clojure-mode))
1065+
(progn
1066+
(add-to-list 'auto-mode-alist
1067+
'("\\.\\(clj[sx]?\\|dtm\\|edn\\)\\'" . clojure-mode))
1068+
;; boot build scripts are Clojure source files
1069+
(add-to-list 'auto-mode-alist '("\\`build.boot\\'" . clojure-mode)))
10671070

10681071
(provide 'clojure-mode)
10691072

0 commit comments

Comments
 (0)