Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indent-region does not follow clojure-align-forms-automatically #22

Closed
manuel-uberti opened this issue Sep 19, 2023 · 1 comment
Closed

Comments

@manuel-uberti
Copy link

manuel-uberti commented Sep 19, 2023

Expected behavior

indent-region respects clojure-align-forms-automatically.

Actual behavior

indent-region does not seem to take clojure-align-forms-automatically set to t into account.

Steps to reproduce the problem

  • Create directory (e.g., /tmp/test-project) with the following files:

.dir-locals.el

((nil . ((clojure-align-forms-automatically . t))))

test.clj

(ns test)

{:a 1
 :ab 2
 :abc 3}
  • Visit test.clj
  • M-x clojure-ts-mode (unless you set major-mode-remap-alist already to prefer it over clojure-mode)
  • Mark the map in test.clj (I use mark-sexp, bound to C-M-SPC)
  • Call indent-region (either via M-x or with C-M-\)
  • The map is not aligned according to clojure-align-forms-automatically
  • Note that with clojure-mode this works as expected, meaning I get the following:
{:a   1
 :ab  2
 :abc 3}

Environment & Version information

clojure-ts-mode version

clojure-ts-mode-0.1.5.0.20230915.3529

tree-sitter-clojure grammar version

v0.0.12

Emacs version

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2023-09-19
Commit: 7be5c8f47c9df01a5accdbf954d952b9bbe5b5f0

Operating system

Ubuntu 22.04.3

@manuel-uberti
Copy link
Author

Closing, duplicate of #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant