diff --git a/CHANGELOG.md b/CHANGELOG.md index 461a6bb0..aa56a95a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/clj-refactor.el b/clj-refactor.el index 01acf4af..ac657548 100644 --- a/clj-refactor.el +++ b/clj-refactor.el @@ -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 @@ -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"