mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
narf-popup-close-all => narf/popup-close-all
This commit is contained in:
@ -219,7 +219,7 @@
|
|||||||
(if (narf/popup-p (selected-window))
|
(if (narf/popup-p (selected-window))
|
||||||
(setq window (selected-window))
|
(setq window (selected-window))
|
||||||
(unless dont-close-all
|
(unless dont-close-all
|
||||||
(narf-popup-close-all dont-kill))))
|
(narf/popup-close-all dont-kill))))
|
||||||
(when (and window (window-live-p window))
|
(when (and window (window-live-p window))
|
||||||
;; REPL buffer
|
;; REPL buffer
|
||||||
(cond ((and (derived-mode-p 'comint-mode)
|
(cond ((and (derived-mode-p 'comint-mode)
|
||||||
@ -234,7 +234,7 @@
|
|||||||
(kill-buffer (window-buffer window)))
|
(kill-buffer (window-buffer window)))
|
||||||
(delete-window window)))
|
(delete-window window)))
|
||||||
|
|
||||||
(defun narf-popup-close-all (&optional dont-kill-buffers)
|
(defun narf/popup-close-all (&optional dont-kill-buffers)
|
||||||
"Closes all popup windows (and kills the buffers if DONT-KILL-BUFFERS is non-nil)"
|
"Closes all popup windows (and kills the buffers if DONT-KILL-BUFFERS is non-nil)"
|
||||||
(interactive)
|
(interactive)
|
||||||
(mapc (lambda (w) (narf/popup-close w dont-kill-buffers))
|
(mapc (lambda (w) (narf/popup-close w dont-kill-buffers))
|
||||||
|
Reference in New Issue
Block a user