Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fdaa4ff

Browse filesBrowse 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 fdaa4ff
Copy full SHA for fdaa4ff

File tree

2 files changed

+7
-1
lines changed
Filter options

2 files changed

+7
-1
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
* Allow additional directories, beyond the default `clj[sc]`, to be correctly formulated by `clojure-expected-ns` via new `defcustom` entitled `clojure-directory-prefixes`
88
* Recognize babashka projects (identified by the presence of `bb.edn`).
99

10+
### Changes
11+
12+
* [#604](https://github.com/clojure-emacs/clojure-mode/pull/604): Add `bb` (babashka) to `interpreter-mode-alist`.
13+
1014
## 5.13.0 (2021-05-05)
1115

1216
### New features

‎clojure-mode.el

Copy file name to clipboardExpand all lines: clojure-mode.el
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.