From dfad10e8431d109e16fae01f32053c2178292557 Mon Sep 17 00:00:00 2001 From: Ivan Kryvoruchko Date: Wed, 24 Apr 2019 18:03:56 +0300 Subject: [PATCH] Set Clojure lookup handlers for specific minor modes to avoid overwriting Fixes issue #1357 https://github.com/hlissner/doom-emacs/issues/1357 --- modules/lang/clojure/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/clojure/config.el b/modules/lang/clojure/config.el index afca38fba5a..2cd426c2106 100644 --- a/modules/lang/clojure/config.el +++ b/modules/lang/clojure/config.el @@ -12,7 +12,7 @@ :init (set-repl-handler! 'clojure-mode #'+clojure/repl) (set-eval-handler! 'clojure-mode #'cider-eval-region) - (set-lookup-handlers! 'clojure-mode + (set-lookup-handlers! 'cider-mode :definition #'cider-find-dwim :documentation #'cider-doc) (add-hook 'cider-mode-hook #'eldoc-mode) @@ -105,7 +105,7 @@ (def-package! clj-refactor :hook (clojure-mode . clj-refactor-mode) :init - (set-lookup-handlers! 'clojure-mode + (set-lookup-handlers! 'clj-refactor-mode :references #'cljr-find-usages) :config (map! :map clojure-mode-map