clojure-emacs / clojure-emacs/clojure-mode

How to define-clojure-indent on all keywords at once?

Open
#420 4 comments 0 reactions 0 assignees View on GitHub
feature request help wanted
Dominant language
Emacs Lisp
Stars
1k
Forks
249
PR merge metrics
No merged PRs in 30d

Description

It looks like `define-clojure-indent` (and `put-clojure-indent`) only allow defining the indentation rules for individual symbols. I wish for *all* keywords to be indented like this:

```
(:keyword
map)
```

Unfortunately, there seems to be no way to do that except by listing every possible keyword explicitly:

```
(define-clojure-indent
(:import 0)
(:require 0)
... lots more ...
(:use 0))
```

The problems with that approach are obvious, I think.

Since this isn't a bug report, I don't think environment information will be helpful (although I install the latest versions of my Emacs packages from MELPA). I am happy to report such information if need be, though.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.