about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-10-02 13:05:50 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-10-02 13:05:50 +0100
commit3e09f18ef9ce7ea46878109a9c0fd1bbb5334bf5 (patch)
treef37dd53b4c0e908539f3c4104f8ff62a46f7d97b
parent58727d3be2e8315214f51c61a0866a71ec08c2b3 (diff)
downloaddotfiles-3e09f18ef9ce7ea46878109a9c0fd1bbb5334bf5.tar.gz
Try to ensure embark-dwim is bound (again)
-rw-r--r--.emacs.d/lisp/init-editor.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-editor.el b/.emacs.d/lisp/init-editor.el
index 850ddab..7849eda 100644
--- a/.emacs.d/lisp/init-editor.el
+++ b/.emacs.d/lisp/init-editor.el
@@ -193,7 +193,10 @@
   (add-to-list 'xref-prompt-for-identifier 'xref-find-references t)
   (add-to-list 'xref-prompt-for-identifier 'xref-find-references-other-window t)
   (add-to-list 'xref-prompt-for-identifier 'xref-find-references-other-frame t)
-  :bind ("C-c q" . xref-find-references-current-defun))
+  :bind
+  ("C-c q" . xref-find-references-current-defun)
+  ;; Make sure xref-find-definitions doesn't override this embark binding (unless https://github.com/oantolin/embark/issues/732 can be fixed)
+  ("M-." . embark-dwim))
 
 (use-package ws-butler
   :diminish