Fix #610: Treat all paren lists as data in edn-mode - #691
Merged
Conversation
bbatsov
force-pushed
the
fix-edn-paren-indentation
branch
from
February 20, 2026 08:55
c005a35 to
5fc7094
Compare
In EDN files there are no function calls, so paren lists like (:key1 :value1 :key2 :value2) should use data-style indentation (aligned at column 1 inside the paren) rather than function-call style indentation. Add `(derived-mode-p 'edn-mode)` as the first check in `clojure--not-function-form-p` so that all list forms in EDN buffers are treated as data. Also fix indentation of a seq-find call to satisfy the linter.
bbatsov
force-pushed
the
fix-edn-paren-indentation
branch
from
February 20, 2026 08:57
5fc7094 to
52782b8
Compare
|
I wanted to highlight a specific use case for EDN files regarding Example of the syntax: |
Member
Author
|
@rrudakov Can you open a new ticket for this, so we can track this properly? |
Done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EDN files have no function calls, so paren lists like
(:key1 :value1 :key2 :value2)should use uniform data-style indentation rather than function-call style. This adds a(derived-mode-p 'edn-mode)check toclojure--not-function-form-pso all lists in EDN buffers indent as data.Fixes #610