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

@ -122,6 +122,8 @@ variable overrides `completion-styles' during company completion sessions.")
(define-key!
[remap describe-bindings] #'embark-bindings)
:config
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
(setq embark-action-indicator
(lambda (map _target)
(which-key--show-keymap "Embark" map nil nil 'no-paging)

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)