Skip to content

Commit cfcf7e0

Browse files
committed
Open embark grep buffers in popup
1 parent ce905b9 commit cfcf7e0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

modules/completion/vertico/config.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ variable overrides `completion-styles' during company completion sessions.")
122122
(define-key!
123123
[remap describe-bindings] #'embark-bindings)
124124
:config
125+
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
126+
125127
(setq embark-action-indicator
126128
(lambda (map _target)
127129
(which-key--show-keymap "Embark" map nil nil 'no-paging)

modules/ui/popup/+hacks.el

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ to this commmand."
6565
(apply orig-fn args)))
6666

6767

68+
;;;###package compile
69+
(defadvice! +popup--compilation-goto-locus-a (orig-fn &rest args)
70+
"Fix links in popup compilation buffers creating a new window each time they
71+
were followed."
72+
:around #'compilation-goto-locus
73+
(letf! (defun pop-to-buffer (buffer &optional action norecord)
74+
(let ((pop-up-windows (not (+popup-buffer-p (current-buffer)))))
75+
(funcall pop-to-buffer buffer action norecord)))
76+
(apply orig-fn args)))
77+
78+
6879
;;;###package eshell
6980
(progn
7081
(setq eshell-destroy-buffer-when-process-dies t)

0 commit comments

Comments
 (0)