Skip to content

Allow clojure-align-cond-forms to recognize namespace-qualified forms #520

Closed
@leithdennis

Description

@leithdennis

This is useful for adding user defined functions to the list of clojure-align-cond-forms and then calling them from within another ns.

Expected behavior

Proper indentation:

(clojure.core/case :foo
  :foo       "foo"
  :bar       "bar"
  :foobarbaz "foobarbaz")

Actual behavior

Actual indentation is:

(clojure.core/case :foo
  :foo "foo"
  :bar "bar"
  :foobarbaz "foobarbaz")

Steps to reproduce the problem

Take the above code block and run clojure-align. Notice that it does not align as non-ns-qualified case would.

Environment & Version information

clojure-mode version information

clojure-mode (version 5.8.2)

Emacs version

25.3.1

Operating system

macOS 10.13.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions