mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user