Skip to content

Commit 2e14e6e

Browse files
committed
Add babashka to interpreter-mode-alist
So files with a first line of e.g. `#!/bin/env bb` will be in clojure-mode.
1 parent feb03a6 commit 2e14e6e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* [#571](https://github.com/clojure-emacs/clojure-mode/issues/571): Remove `project.el` integration.
2727
* [#574](https://github.com/clojure-emacs/clojure-mode/issues/574): Remove `clojure-view-grimoire` command.
2828
* [#584](https://github.com/clojure-emacs/clojure-mode/issues/584): Align to recent `pcase` changes on Emacs master.
29+
* Add `bb` (babashka) to `interpreter-mode-alist`.
2930

3031
## 5.12.0 (2020-08-13)
3132

clojure-mode.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -3004,7 +3004,9 @@ With universal argument \\[universal-argument], act on the \"top-level\" form."
30043004
(add-to-list 'auto-mode-alist '("\\.cljc\\'" . clojurec-mode))
30053005
(add-to-list 'auto-mode-alist '("\\.cljs\\'" . clojurescript-mode))
30063006
;; boot build scripts are Clojure source files
3007-
(add-to-list 'auto-mode-alist '("\\(?:build\\|profile\\)\\.boot\\'" . clojure-mode)))
3007+
(add-to-list 'auto-mode-alist '("\\(?:build\\|profile\\)\\.boot\\'" . clojure-mode))
3008+
;; babashka scripts are Clojure source files
3009+
(add-to-list 'interpreter-mode-alist '("bb" . clojure-mode)))
30083010

30093011
(provide 'clojure-mode)
30103012

0 commit comments

Comments
 (0)