mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feature/popup: minor refactor & remove provide
This commit is contained in:
@ -121,7 +121,7 @@ current buffer."
|
||||
|
||||
;;;###autoload
|
||||
(defun +popup-parameter (parameter &optional window)
|
||||
"Fetch the window parameter of WINDOW"
|
||||
"Fetch the window PARAMETER (symbol) of WINDOW"
|
||||
(window-parameter (or window (selected-window)) parameter))
|
||||
|
||||
;;;###autoload
|
||||
|
@ -267,9 +267,6 @@ instead of switch-to-buffer-*."
|
||||
"Restore popup windows when loading a perspective from file."
|
||||
(dolist (window (window-list))
|
||||
(when (+popup-parameter 'popup window)
|
||||
(with-selected-window window
|
||||
(+popup-buffer-mode +1)))))
|
||||
(+popup--init window))))
|
||||
(advice-add #'persp-load-state-from-file :after #'+popup*persp-mode-restore-popups))
|
||||
|
||||
(provide 'config)
|
||||
;;; config.el ends here
|
||||
|
Reference in New Issue
Block a user