Don't prompt for identifier for xref-find-references
This commit is contained in:
parent
36e5bfab7f
commit
711ee05175
@ -1018,9 +1018,25 @@ After I select an xref reference, I want the xref buffer closed:
|
|||||||
(defun xref-goto-xref-and-quit ()
|
(defun xref-goto-xref-and-quit ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(xref-goto-xref t))
|
(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
|
#+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
|
* IBuffer
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package ibuffer
|
(use-package ibuffer
|
||||||
|
Loading…
Reference in New Issue
Block a user