core-popups: clone buffer if visible elsewhere

Allows us to modify the buffer in the pop up window indepdently from the
rest.
This commit is contained in:
Henrik Lissner 2017-05-12 12:11:40 +02:00
parent 29d01756ea
commit ed6941e8ae
3 changed files with 8 additions and 4 deletions

View file

@ -74,8 +74,7 @@
(defun +doom|buffer-mode-off ()
"Disable `doom-buffer-mode' in popup buffers."
(when (and doom-buffer-mode
(not (get-buffer-window-list)))
(when doom-buffer-mode
(doom-buffer-mode -1)))
(add-hook 'doom-popup-mode-hook #'+doom|buffer-mode-off)