Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed58c79

Browse files
committedOct 25, 2021
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 e1dc7ca commit ed58c79

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
@@ -25,6 +25,7 @@
2525
* [#571](https://github.com/clojure-emacs/clojure-mode/issues/571): Remove `project.el` integration.
2626
* [#574](https://github.com/clojure-emacs/clojure-mode/issues/574): Remove `clojure-view-grimoire` command.
2727
* [#584](https://github.com/clojure-emacs/clojure-mode/issues/584): Align to recent `pcase` changes on Emacs master.
28+
* Add `bb` (babashka) to `interpreter-mode-alist`.
2829

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

‎clojure-mode.el

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

30083010
(provide 'clojure-mode)
30093011

0 commit comments

Comments
 (0)
Please sign in to comment.