[Emacs] Get rid of broken xref hack
This commit is contained in:
parent
9043df7453
commit
373e258a02
@ -1206,21 +1206,7 @@ Disabling line numbers because they are slow as fuck.
|
|||||||
#+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
|
(use-package xref)
|
||||||
:config
|
|
||||||
(defun xref--show-pos-in-buf (pos buf select)
|
|
||||||
(let ((xref-buf (current-buffer))
|
|
||||||
win)
|
|
||||||
(with-selected-window
|
|
||||||
(display-buffer buf)
|
|
||||||
(xref--goto-char pos)
|
|
||||||
(run-hooks 'xref-after-jump-hook)
|
|
||||||
(let ((buf (current-buffer)))
|
|
||||||
(setq win (selected-window))
|
|
||||||
(with-current-buffer xref-buf
|
|
||||||
(setq-local other-window-scroll-buffer buf))))
|
|
||||||
(when select
|
|
||||||
(select-window win)))))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Fill Setup
|
** Fill Setup
|
||||||
Get rid of nags about requiring setences to end with two spaces.
|
Get rid of nags about requiring setences to end with two spaces.
|
||||||
|
Loading…
Reference in New Issue
Block a user