Better magit+shackle integration
This commit is contained in:
parent
44e672655d
commit
a6c4aace90
4 changed files with 59 additions and 10 deletions
|
@ -23,6 +23,18 @@ current window if omitted."
|
|||
buffer
|
||||
nil (or plist (shackle-match buffer))))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-popup-switch-to-buffer (buffer)
|
||||
(unless (doom-popup-p)
|
||||
(let ((popups (doom-popup-windows)))
|
||||
(unless popups
|
||||
(error "No popups to switch"))
|
||||
(select-window (car popups))))
|
||||
(set-window-dedicated-p nil nil)
|
||||
(switch-to-buffer buffer nil t)
|
||||
(prog1 (selected-window)
|
||||
(set-window-dedicated-p nil t)))
|
||||
|
||||
;;;###autoload
|
||||
(defun doom-popup-file (file &rest plist)
|
||||
"Display FILE in a shackle popup, with PLIST rules. See `shackle-rules' for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue