about summary refs log tree commit diff stats
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-06-10 13:30:14 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-06-10 13:30:14 +0100
commit8621c1ee2f7b21fcef2e3c7c6e7d0b48cbd31594 (patch)
tree1cade2f482c35c5211ebd9d6147eca947b71fa13 /.emacs.d/lisp
parent6f3370ebe7f75e6633a3b208d7b2a7a1532fdad3 (diff)
downloaddotfiles-8621c1ee2f7b21fcef2e3c7c6e7d0b48cbd31594.tar.gz
Prevent duplicate ns declarations in new clj files
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-clojure.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el
index c676693..0cd3200 100644
--- a/.emacs.d/lisp/init-clojure.el
+++ b/.emacs.d/lisp/init-clojure.el
@@ -19,9 +19,11 @@
   :diminish
   :after yasnippet
   :bind ("C-c '" . hydra-cljr-help-menu/body)
+  :custom
+  (cljr-suppress-no-project-warning t)
+  (cljr-add-ns-to-blank-clj-files nil) ; disable clj-refactor adding ns to blank files
   :config
   (cljr-add-keybindings-with-prefix "C-c C-m")
-  (setq cljr-suppress-no-project-warning t)
   (defun clj-refactor-hook-fn ()
     (clj-refactor-mode 1)
     (yas-minor-mode 1))