Skip to content

Commit 466822f

Browse files
committed
Introduce cljr-insert-newline-after-require option
1 parent ae2f634 commit 466822f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- [#483](https://github.com/clojure-emacs/clj-refactor.el/issues/483): Improve performance of cljr-slash when typing fraction literals.
66
- [#482](https://github.com/clojure-emacs/clj-refactor.el/issues/482): Add missing defgroup form.
77
- [#470](https://github.com/clojure-emacs/clj-refactor.el/issues/470): Choose `deps.edn` over `pom.xml` as project file.
8+
- Introduce `defcustom cljr-insert-newline-after-require` option.
89

910
## 2.5.1 (2021-02-16)
1011

clj-refactor.el

+9
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ This only applies to dependencies added by `cljr-add-project-dependency'."
126126
:group 'cljr
127127
:type 'boolean)
128128

129+
(defcustom cljr-insert-newline-after-require t
130+
"If t, `cljr-clean-ns' will place a newline after the `:require` and `:import` tokens."
131+
:group 'cljr
132+
:type 'boolean)
133+
129134
(defcustom cljr-use-multiple-cursors t
130135
"If t, some refactorings use the `multiple-cursors' package.
131136
This improves interactivity of the commands. If nil, those
@@ -751,6 +756,10 @@ All config settings are included in the created msg."
751756
(if cljr-favor-prefix-notation
752757
"true"
753758
"false")
759+
"insert-newline-after-require"
760+
(if cljr-insert-newline-after-require
761+
"true"
762+
"false")
754763
"debug"
755764
(if cljr--debug-mode
756765
"true"

0 commit comments

Comments
 (0)