clojure-emacs / clojure-emacs/clojure-mode
Indenting deftype with metadata on method implementations is inconsistent
- Dominant language
- Emacs Lisp
- Stars
- 1k
- Forks
- 249
- PR merge metrics
- No merged PRs in 30d
Description
## Expected behavior
Indenting `deftype` forms should be consistent (and ideally aesthetically pleasing)
## Actual behavior
Method implementations with attached metadata in `deftype` seem to be indented as if they were common lists, instead of method implementations
## Steps to reproduce the problem
Try to indent:
```
(deftype MyType []
MyProtocol
(do-thing []
:indented)
(^:meta do-thing2 []
:not-indented))
```
(And notice it stays as-is, with `:indented` and `:not-indented` being indented inconsistently)
## Environment & Version information
### clojure-mode version
```
clojure-mode (version 5.13.0)
```
### Emacs version
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
### Operating system
GNU Guix System
Contributor guide
Assessment
This issue has not been assessed yet.