about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-clojure.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-prelude/personal/lisp/init-clojure.el')
-rw-r--r--emacs-prelude/personal/lisp/init-clojure.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/emacs-prelude/personal/lisp/init-clojure.el b/emacs-prelude/personal/lisp/init-clojure.el
index 174dffd..191eae2 100644
--- a/emacs-prelude/personal/lisp/init-clojure.el
+++ b/emacs-prelude/personal/lisp/init-clojure.el
@@ -2,7 +2,7 @@
 
 (prelude-require-package 'yasnippet)
 (use-package yasnippet
-  :diminish yas)
+  :diminish yas-minor-mode)
 
 (prelude-require-package 'flycheck-clj-kondo)
 (use-package clojure-mode
@@ -12,6 +12,7 @@
 (prelude-require-package 'clj-refactor)
 (use-package clj-refactor
   :diminish
+  :after yasnippet
   :bind ("C-c '" . hydra-cljr-help-menu/body)
   :config
   (cljr-add-keybindings-with-prefix "C-c C-m")
@@ -23,13 +24,18 @@
       (yas-minor-mode 1))))
 
 (use-package cider
+  :diminish
+  :after key-chord
   :config
   (setq cider-repl-pop-to-buffer-on-connect 'display-only
-	cider-repl-display-help-banner nil
-	cider-repl-history-highlight-current-entry t
-	cider-repl-history-highlight-inserted-item t
-	cider-repl-use-clojure-font-lock t
-	cider-repl-use-pretty-printing t))
+        cider-repl-display-help-banner nil
+        cider-repl-history-highlight-current-entry t
+        cider-repl-history-highlight-inserted-item t
+        cider-repl-use-clojure-font-lock t
+        cider-repl-use-pretty-printing t
+        clojure-toplevel-inside-comment-form t)
+  (key-chord-define-global "??" 'cider-xref-fn-refs-select)
+  (key-chord-define-global "qq" 'cider-xref-fn-refs))
 
 (provide 'init-clojure)