Skip to content

Introduce cljr-insert-newline-after-require option #490

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

Merged
merged 1 commit into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [#483](https://github.com/clojure-emacs/clj-refactor.el/issues/483): Improve performance of cljr-slash when typing fraction literals.
- [#482](https://github.com/clojure-emacs/clj-refactor.el/issues/482): Add missing defgroup form.
- [#470](https://github.com/clojure-emacs/clj-refactor.el/issues/470): Choose `deps.edn` over `pom.xml` as project file.
- Introduce `defcustom cljr-insert-newline-after-require` option.

## 2.5.1 (2021-02-16)

Expand Down
9 changes: 9 additions & 0 deletions clj-refactor.el
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ This only applies to dependencies added by `cljr-add-project-dependency'."
:group 'cljr
:type 'boolean)

(defcustom cljr-insert-newline-after-require t
"If t, `cljr-clean-ns' will place a newline after the `:require` and `:import` tokens."
:group 'cljr
:type 'boolean)

(defcustom cljr-use-multiple-cursors t
"If t, some refactorings use the `multiple-cursors' package.
This improves interactivity of the commands. If nil, those
Expand Down Expand Up @@ -751,6 +756,10 @@ All config settings are included in the created msg."
(if cljr-favor-prefix-notation
"true"
"false")
"insert-newline-after-require"
(if cljr-insert-newline-after-require
"true"
"false")
"debug"
(if cljr--debug-mode
"true"
Expand Down