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

Indenting deftype with metadata on method implementations is inconsistent #603

Open
jellelicht opened this issue Sep 29, 2021 · 0 comments

Comments

@jellelicht
Copy link

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

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

No branches or pull requests

2 participants