[Emacs] Get rid of broken xref hack

This commit is contained in:
Ivan Malison 2019-05-25 21:22:06 -07:00
parent 9043df7453
commit 373e258a02
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

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