NonGNU-devel ELPA - clojure-mode

clojure-mode Atom Feed

Description
Major mode for Clojure code
Latest
clojure-mode-5.21.0.0.20260220.185145.tar (.sig), 2026-Feb-20, 210 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.0.20260220.85612.tar.lz2026-Feb-2043.9 KiB
clojure-mode-5.21.0.0.20260220.85612.tar.lz2026-Feb-2043.9 KiB
clojure-mode-5.21.0.0.20260219.165015.tar.lz2026-Feb-1943.5 KiB
clojure-mode-5.21.0.0.20260218.193248.tar.lz2026-Feb-1843.4 KiB
clojure-mode-5.20.0.0.20260212.151851.tar.lz2026-Feb-1242.7 KiB
clojure-mode-5.20.0.0.20260116.81811.tar.lz2026-Jan-1642.3 KiB
clojure-mode-5.20.0snapshot0.20250406.154328.tar.lz2025-Apr-0642.2 KiB
clojure-mode-5.19.0snapshot0.20240516.52537.tar.lz2024-May-1642.0 KiB
clojure-mode-5.18.1.0.20240211.222624.tar.lz2024-Feb-1241.5 KiB
clojure-mode-5.13.0.0.20220222.82730.tar.lz2022-Feb-2239.2 KiB

News

Changelog

master (unreleased)

New features
  • #687: Add clojure-preferred-build-tool to control project root detection when multiple build tool files exist. When unset, prefer directories containing .git as a tiebreaker.
  • #688: Add clojure-discard-face for #_ reader discard forms, allowing them to be styled differently from comments. Inherits from font-lock-comment-face by default.
  • Add project root detection for ClojureCLR (deps-clr.edn).
Changes
  • Update font-locking of built-in dynamic vars for Clojure 1.12.
  • Update clojure-mode-extra-font-locking for Clojure 1.10-1.12 (new functions in clojure.core and other bundled namespaces).
  • Add clojure.repl section to clojure-mode-extra-font-locking.
  • Remove non-existent entries from clojure-mode-extra-font-locking (specify, specify!, special-form-anchor, syntax-symbol-anchor, stream?).
Bugs fixed
  • Fix typos in clojure-mode-extra-font-locking: halt-when? -> halt-when, simple-indent? -> simple-ident?.
  • Fix doc and find-doc misplaced under clojure.core instead of clojure.repl in extra font-locking.

5.21.0 (2026-02-18)

New features
  • #650: Add edn-mode, a lightweight mode derived from clojure-mode with data-appropriate indentation for .edn files.
  • #439: Add interpreter-mode-alist entries for clojure, clj, planck, joker, and jank, so that scripts with shebang lines are recognized automatically.
Bugs fixed
  • #658: Fix clojure-mode-version returning nil.
  • #686: Fix clojure-find-def failing when comments appear between the def form and the symbol name.
  • #637: Fix clojure-find-def failing on symbols containing special characters (e.g. defn+).
Changes
  • #482: Bind clojure-align to C-c C-a (following Emacs keybinding conventions). The old C-c SPC binding 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)

New features
  • Add clojuredart-mode, joker-mode and jank-mode, derived from clojure-mode.
Bugs fixed
  • cider#3758: Improve regexp for clojure-find-def to recognize more complex metadata on vars.
  • #684: Restore outline-regexp pattern to permit outline handling of top-level forms.
  • Improve regexp for clojure-find-def to recognize defn- and other declarations on the form def...-.

5.19.0 (2024-05-26)

Bugs fixed
  • Fix clojure-align when called from clojure-ts-mode major mode buffers.
  • #671: Syntax highlighting for digits after the first in % args. (e.g. %10)
  • #680: Change syntax class of ASCII control characters to punctuation, fixing situations where carriage returns were being interpreted as symbols.
Changes
  • #675: Add .lpy to the list of known Clojure file extensions.

5.18.1 (2023-11-24)

Bugs fixed
  • #653: Don't highlight vars with colons as keywords.

5.18.0 (2023-10-18)

Changes
  • cider#2903: Avoid No comment syntax is defined prompts.

5.17.1 (2023-09-12)

Changes
  • Declare indentation for the async ClojureScript macro. ... ...