clojure-mode
- Description
- Major mode for Clojure code
- Latest
- clojure-mode-5.20.0snapshot0.20240611.73422.tar (.sig), 2024-Jun-11, 190 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.20.0snapshot0.20240527.53403.tar.lz | 2024-May-27 | 42.0 KiB |
clojure-mode-5.20.0snapshot0.20240526.182523.tar.lz | 2024-May-26 | 42.0 KiB |
clojure-mode-5.19.0snapshot0.20240516.52537.tar.lz | 2024-May-16 | 42.0 KiB |
clojure-mode-5.19.0snapshot0.20240219.101219.tar.lz | 2024-Feb-19 | 41.9 KiB |
clojure-mode-5.18.1.0.20240211.222624.tar.lz | 2024-Feb-12 | 41.5 KiB |
clojure-mode-5.17.1.0.20231012.123206.tar.lz | 2023-Oct-12 | 41.0 KiB |
clojure-mode-5.16.2.0.20230907.75725.tar.lz | 2023-Sep-07 | 40.9 KiB |
clojure-mode-5.15.1.0.20221203.225617.tar.lz | 2022-Dec-04 | 40.1 KiB |
clojure-mode-5.14.0.0.20220715.150931.tar.lz | 2022-Jul-15 | 39.4 KiB |
clojure-mode-5.13.0.0.20220222.82730.tar.lz | 2022-Feb-22 | 39.2 KiB |
News
Changelog
master (unreleased)
5.19.0 (2024-05-26)
Bugs fixed
- Fix
clojure-align
when called fromclojure-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.
5.17.0 (2023-09-11)
Changes
- Improve support for multiple forms in the same line by replacing
beginning-of-defun
fn.
Bugs fixed
- #656: Fix
clojure-find-ns
when ns form is preceded by other forms. - #593: Fix
clojure-find-ns
when ns form is preceded by whitespace or inside comment form.
5.16.2 (2023-08-23)
Changes
clojure-find-ns
: add an option to never raise errors, returningnil
instead on unparseable ns forms.
5.16.1 (2023-06-26)
Changes
- Font-lock Lein's
defproject
as a keyword.
Bugs fixed
- #645: Fix infinite loop when sorting a ns with comments in the end.
- #586: Fix infinite loop when opening file containing
comment
withclojure-toplevel-inside-comment-form
set tot
.
5.16.0 (2022-12-14)
Changes
- #641: Recognize nbb projects (identified by the presence of
nbb.edn
). - #629: Set
add-log-current-defun-function
to new functionclojure-current-defun-name
(this is used bywhich-function-mode
andeasy-kill
).
Bugs fixed
- #581: Fix font locking not working for keywords starting with a number.
- #377: Fix everything starting with the prefix
def
being highlighted as a definition form. Now definition forms are enumerated explicitly in the font-locking code, like all other forms. - #638: Fix
imenu
with Clojure code in string or comment.
5.15.1 (2022-07-30)
Bugs fixed
- #625: Fix metadata being displayed in
imenu
instead of var name.
5.15.0 (2022-07-19)
Changes
Bugs fixed
5.14.0 (2022-03-07)
New features
- Allow additional directories, beyond the default
clj[sc]
, to be correctly formulated byclojure-expected-ns
via newdefcustom
entitledclojure-directory-prefixes
- Recognize babashka projects (identified by the presence of
bb.edn
). - #601: Add new command
clojure-promote-fn-literal
for converting#()
function literals tofn
form. ... ...