Open embark grep buffers in popup

This commit is contained in:
Henrik Lissner 2021-07-25 15:37:36 -04:00
parent ce905b9246
commit cfcf7e0d03
2 changed files with 13 additions and 0 deletions

View file

@ -65,6 +65,17 @@ to this commmand."
(apply orig-fn args)))
;;;###package compile
(defadvice! +popup--compilation-goto-locus-a (orig-fn &rest args)
"Fix links in popup compilation buffers creating a new window each time they
were followed."
:around #'compilation-goto-locus
(letf! (defun pop-to-buffer (buffer &optional action norecord)
(let ((pop-up-windows (not (+popup-buffer-p (current-buffer)))))
(funcall pop-to-buffer buffer action norecord)))
(apply orig-fn args)))
;;;###package eshell
(progn
(setq eshell-destroy-buffer-when-process-dies t)