Don't prompt for identifier for xref-find-references

This commit is contained in:
Jeremy Dormitzer 2020-02-26 10:05:22 -05:00
parent 36e5bfab7f
commit 711ee05175

View File

@ -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