diff --git a/emacs/init.org b/emacs/init.org index 897799e..aef0bb4 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -1018,9 +1018,25 @@ After I select an xref reference, I want the xref buffer closed: (defun xref-goto-xref-and-quit () (interactive) (xref-goto-xref t)) - (general-def 'normal xref--xref-buffer-mode-map "RET" #'xref-goto-xref-and-quit :keymaps 'override) + (general-def 'normal xref--xref-buffer-mode-map "RET" + #'xref-goto-xref-and-quit :keymaps 'override) #+END_SRC +Don't prompt for an identifier for these xref commands: +#+BEGIN_SRC emacs-lisp + (setq xref-prompt-for-identifier + '(not xref-find-definitions + xref-find-definitions-other-window + xref-find-definitions-other-frame + xref-find-references)) +#+END_SRC + +Some keybindings: +#+BEGIN_SRC emacs-lisp + (general-def "C-c r" #'xref-find-references) +#+END_SRC + + * IBuffer #+BEGIN_SRC emacs-lisp (use-package ibuffer