clojure-mode 
- Description
- Major mode for Clojure code
- Latest
- clojure-mode-5.22.0.tar (.sig), 2026-Mar-04, 220 KiB
- Maintainer
- Bozhidar Batsov <bozhidar@batsov.dev>
- Website
- https://github.com/clojure-emacs/clojure-mode
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install or list-packages.
Full description
Provides font-lock, indentation, navigation and basic refactoring for the Clojure programming language (https://clojure.org). Using clojure-mode with paredit or smartparens is highly recommended. Here are some example configurations: ;; require or autoload paredit-mode (add-hook 'clojure-mode-hook #'paredit-mode) ;; require or autoload smartparens (add-hook 'clojure-mode-hook #'smartparens-strict-mode) See inf-clojure (https://github.com/clojure-emacs/inf-clojure) for basic interaction with Clojure subprocesses. See CIDER (https://github.com/clojure-emacs/cider) for better interaction with subprocesses via nREPL.
Old versions
| clojure-mode-5.21.0.tar.lz | 2026-Feb-18 | 43.4 KiB |
| clojure-mode-5.20.0.tar.lz | 2025-May-27 | 42.1 KiB |
| clojure-mode-5.19.0.tar.lz | 2024-May-26 | 42.0 KiB |
| clojure-mode-5.18.1.tar.lz | 2024-Mar-31 | 41.4 KiB |
| clojure-mode-5.18.0.tar.lz | 2023-Oct-18 | 41.0 KiB |
| clojure-mode-5.17.1.tar.lz | 2023-Oct-12 | 41.0 KiB |
| clojure-mode-5.17.0.tar.lz | 2023-Sep-11 | 40.9 KiB |
| clojure-mode-5.16.2.tar.lz | 2023-Aug-23 | 40.6 KiB |
| clojure-mode-5.16.1.tar.lz | 2023-Jun-26 | 40.4 KiB |
| clojure-mode-5.16.0.tar.lz | 2022-Dec-14 | 40.2 KiB |
| clojure-mode-5.15.1.tar.lz | 2022-Jul-30 | 39.5 KiB |
| clojure-mode-5.15.0.tar.lz | 2022-Jul-19 | 39.4 KiB |
| clojure-mode-5.14.0.tar.lz | 2022-Mar-08 | 39.2 KiB |
| clojure-mode-5.13.0.tar.lz | 2021-Aug-09 | 37.4 KiB |
News
Changelog
master (unreleased)
5.22.0 (2026-03-03)
New features
- #687: Add
clojure-preferred-build-toolto control project root detection when multiple build tool files exist. When unset, prefer directories containing.gitas a tiebreaker. - #688: Add
clojure-discard-facefor#_reader discard forms, allowing them to be styled differently from comments. Inherits fromfont-lock-comment-faceby default. - Add project root detection for ClojureCLR (
deps-clr.edn). - Give
edn-modeits own keymap with data-appropriate bindings, excluding code-oriented refactoring commands.
Changes
- Update font-locking of built-in dynamic vars for Clojure 1.12.
- Update
clojure-mode-extra-font-lockingfor Clojure 1.10-1.12 (new functions inclojure.coreand other bundled namespaces). - Add
clojure.replsection toclojure-mode-extra-font-locking. - Remove non-existent entries from
clojure-mode-extra-font-locking(specify,specify!,special-form-anchor,syntax-symbol-anchor,stream?). - Extend
clojure--check-wrong-major-modeto cover all derived modes (.cljd,.jank,.joke,.edn). - Remove dead
.cljdentry fromclojure-modeauto-mode-alist.
Bugs fixed
- #402: Font-lock protocol method docstrings with
font-lock-doc-face. - #649: Fix
clojure-add-aritysevering arglist metadata (^String,^:keyword,^{...}) when converting single-arity to multi-arity. - #600: Fix
clojure--valid-put-clojure-indent-call-prejecting valid indent specs with nested lists (e.g.letfn's(1 ((:defn)) nil)). - #365: Font-lock function names in
letfnbindings withfont-lock-function-name-face. - #527: Fix
clojure-sort-nsmangling:gen-classand other non-sortable ns forms. - #619: Fix
clojure-thread-last-allbreaking forms containing line comments by absorbing closing parens into comments. - #610: Fix
edn-modeindentation to treat all paren lists as data rather than function calls. - Fix
clojure-update-nsbroken by the removal ofclojure-namespace-name-regex. - Fix typos in
clojure-mode-extra-font-locking:halt-when?->halt-when,simple-indent?->simple-ident?. - Fix
docandfind-docmisplaced underclojure.coreinstead ofclojure.replin extra font-locking.
5.21.0 (2026-02-18)
New features
- #650: Add
edn-mode, a lightweight mode derived fromclojure-modewith data-appropriate indentation for.ednfiles. - #439: Add
interpreter-mode-alistentries forclojure,clj,planck,joker, andjank, so that scripts with shebang lines are recognized automatically.
Bugs fixed
- #658: Fix
clojure-mode-versionreturningnil. - #686: Fix
clojure-find-deffailing when comments appear between thedefform and the symbol name. - #637: Fix
clojure-find-deffailing on symbols containing special characters (e.g.defn+).
Changes
- #482: Bind
clojure-aligntoC-c C-a(following Emacs keybinding conventions). The oldC-c SPCbinding is deprecated and will be removed in a future release. - Bump the minimum required Emacs version to 27.1.
5.20.0 (2025-05-27)
... ...