Skip to content

Commit

Permalink
Improve pretty-printing of namespaces
Browse files Browse the repository at this point in the history
This makes the pretty-printed namespace form more in line with the
clojure style guide.

Specifically we go from:

```
(ns foo.bar
  (:require [this.library :as lib]))
```

To:

```
(ns foo.bar
  (:require
    [this.library :as lib]))
```

This commit closes clojure-emacs/clj-refactor.el#459
  • Loading branch information
expez committed Jun 24, 2021
1 parent e0accea commit ffe3e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refactor_nrepl/ns/pprint.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

(defn pprint-require-form
[[_ & libspecs]]
(print "(:require ")
(print "(:require\n")
(dorun
(map-indexed
(fn [idx libspec]
Expand Down

0 comments on commit ffe3e41

Please sign in to comment.