diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dcf329b..45e25574 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ * Allow additional directories, beyond the default `clj[sc]`, to be correctly formulated by `clojure-expected-ns` via new `defcustom` entitled `clojure-directory-prefixes` * Recognize babashka projects (identified by the presence of `bb.edn`). +### Changes + +* [#604](https://github.com/clojure-emacs/clojure-mode/pull/604): Add `bb` (babashka) to `interpreter-mode-alist`. + ## 5.13.0 (2021-05-05) ### New features diff --git a/clojure-mode.el b/clojure-mode.el index a3aa43b5..95018a75 100644 --- a/clojure-mode.el +++ b/clojure-mode.el @@ -3005,7 +3005,9 @@ With universal argument \\[universal-argument], act on the \"top-level\" form." (add-to-list 'auto-mode-alist '("\\.cljc\\'" . clojurec-mode)) (add-to-list 'auto-mode-alist '("\\.cljs\\'" . clojurescript-mode)) ;; boot build scripts are Clojure source files - (add-to-list 'auto-mode-alist '("\\(?:build\\|profile\\)\\.boot\\'" . clojure-mode))) + (add-to-list 'auto-mode-alist '("\\(?:build\\|profile\\)\\.boot\\'" . clojure-mode)) + ;; babashka scripts are Clojure source files + (add-to-list 'interpreter-mode-alist '("bb" . clojure-mode))) (provide 'clojure-mode)