Skip to content

Format threading macro aligned after the -> ? #58

Open

Description

@cybershape

Currently the threading macro is formatted as:

image

Are there any options to format it aligned after the -> ?

image

Activity

  1. mk commented on Oct 29, 2024

    @mk
    Member

    Work around supporting this was started by @mhuebert in #37. Unfortunately it's gotten stale since then and I can't say when we'll get around to picking this up again. @tiejunhu feel free to try it and revive if it solves your problem.

  2. jurjanpaul commented on Jan 7, 2026

    @jurjanpaul

    I just published https://github.com/jurjanpaul/codemirror6-clojure-smart-indent that takes care of this (applying the desired indentation after pressing Enter that is).

    But to be clear: including that extension overrules the default Tonsky's Better Code Formatting for indentation.

  3. jurjanpaul commented on Jan 7, 2026

    @jurjanpaul

    O, no... I only now realise that the 'auto formatting' is strong in this one.

    The Clojure Smart Indentation extension does nothing to fight that. Sorry, only tested with @nextjournal/lang-clojure, not (yet) with @nextjournal/clojure-mode itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions