Indentation of `clojure.test/are`
還沒有人認領這個 Issue。
評估
研究方向
使用 aggressive-indent-mode,依照 clojure-mode 的縮排規則重現 clojure.test/are 範例,然後將它們與 M-x cider-format 和 lein cljfmt 比較。追蹤 clojure-mode 的縮排進入點,並判斷額外的空格是否可以設定或使其一致;當顯示的形式使用相符的縮排時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Expected behavior
I was expecting clojure-mode's indentation to behave similar to cider-format and lein cljfmt. Is there some way to configure clojure-mode to indent the same way as cider-format?
Actual behavior
The macro clojure.test/are is indented one way with M-x cider-format (and lein cljfmt), but another way when using clojure-mode's indentation rules (with aggressive-indent-mode). The latter uses one space less than the former for the second argument to are (when it is on a new line).
Steps to reproduce the problem
The code is formatted as following using clojure-mode indentation:
(deftest are-test
(are [x y]
(= x y)
1 1
2 2))
And as following when using cider-format indentation (note the extra space on line 3):
((deftest are-test
(are [x y]
(= x y)
1 1
2 2))
Environment & Version information
clojure-mode version information
clojure-mode (version 5.11.0)
Emacs version
GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.12, cairo version 1.17.3) of 2019-11-26
Operating system
Arch Linux
- 主要語言
- Emacs Lisp
- 星號
- 1k
- 分支
- 249
- 平均合併
- 1 天 6 小時
- 30 天內合併 PR
- 6
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
clojure-emacs/clojure-mode 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/clojure-mode#699 ·
-
難度 4/5 3-5 天 新手友好度 35/100
clojure-emacs/clojure-mode#660 · 5 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
clojure-emacs/clojure-mode#647 · 1 則留言 ·
-
bug help wanted indentation
難度 3/5 1-2 天 新手友好度 42/100
clojure-emacs/clojure-mode#620 ·
-
難度 3/5 1-2 天 新手友好度 45/100
clojure-emacs/clojure-mode#613 · 1 個 reaction ·
查看 clojure-emacs/clojure-mode 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 88/100
py-econometrics/pyfixest#2114 ·
維護者通常 1 天內回覆
-
Verify the Linux Python quick start from a fresh Ubuntu checkout可能已有人在做 @romanv9 今天認領。 未關閉documentation good first issue help wanted
難度 2/5 1-3 小時 新手友好度 62/100
R0Y00/Xbox2Windows#652 · 1 則留言 ·
維護者通常 1 天內回覆
-
documentation good first issue
難度 2/5 1-3 小時 新手友好度 72/100
Haseeb-MernStack/commune#138 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 62/100
-
難度 2/5 1-3 小時 新手友好度 70/100
clojure-emacs/cider#4235 ·
維護者通常 1 天內回覆