forked from colonelpanic/dotfiles
[Emacs] Override xref function AFTER xref loaded
This commit is contained in:
parent
d5e7f3d8ef
commit
3221c24383
@ -1140,6 +1140,8 @@ programming mode.
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Handle xrefs annoying dedicated window garbage
|
*** Handle xrefs annoying dedicated window garbage
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package xref
|
||||||
|
:config
|
||||||
(defun xref--show-pos-in-buf (pos buf select)
|
(defun xref--show-pos-in-buf (pos buf select)
|
||||||
(let ((xref-buf (current-buffer))
|
(let ((xref-buf (current-buffer))
|
||||||
win)
|
win)
|
||||||
@ -1152,7 +1154,7 @@ programming mode.
|
|||||||
(with-current-buffer xref-buf
|
(with-current-buffer xref-buf
|
||||||
(setq-local other-window-scroll-buffer buf))))
|
(setq-local other-window-scroll-buffer buf))))
|
||||||
(when select
|
(when select
|
||||||
(select-window win))))
|
(select-window win)))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** display-buffer-alist
|
*** display-buffer-alist
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user