Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Basic support for dynamic indentation#69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@rrudakov
Copy link
Contributor

This PR introducesclojure-ts-get-indent-function variable, which can be set by CIDER as:

(setq-local clojure-ts-get-indent-function#'cider--get-symbol-indent)

to enable dynamic indentation based on:style/indent metadata. Currently it supports only first level, so{:style/indent 1} and{:style/indent [1 [[:defn]] :form]} are both translated to(:block 1) rule.

I haven't added anything to README, because it's internal change, similar function is not mentioned inclojure-mode readme as well.


Before submitting a PR mark the checkboxes for the items you've done (if you
think a checkbox does not apply, then leave it unchecked):

  • The commits are consistent with ourcontribution guidelines.
  • You've added tests (if possible) to cover your change(s). Bugfix, indentation, and font-lock tests are extremely important!
  • You've runM-x checkdoc and fixed any warnings in the code you've written.
  • You've updated the changelog (if adding/changing user-visible functionality).
  • You've updated the readme (if adding/changing user-visible functionality).

Thanks!

@bbatsov
Copy link
Member

The change looks pretty good overall! We're now one step closer to full support for CIDER!

@rrudakovrrudakovforce-pushed thefeature/dynamic-indentation branch from1222b1b to5085667CompareApril 3, 2025 20:32
@rrudakovrrudakov requested a review frombbatsovApril 3, 2025 20:32
@bbatsovbbatsov merged commit9ae1f42 intoclojure-emacs:mainApr 3, 2025
2 of 3 checks passed
@rrudakovrrudakov deleted the feature/dynamic-indentation branchApril 4, 2025 09:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@bbatsovbbatsovbbatsov approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@rrudakov@bbatsov

[8]ページ先頭

©2009-2025 Movatter.jp