mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Display *Warnings* buffer in main workspace after startup #319
The creation of the main workspace would swallow the Warnings buffer, so we forcibly display it (if it exists) on startup.
This commit is contained in:
@ -71,7 +71,11 @@ renamed.")
|
||||
;; Switch to it if we aren't auto-loading the last session
|
||||
(when (and (equal (safe-persp-name (get-current-persp)) persp-nil-name)
|
||||
(= persp-auto-resume-time -1))
|
||||
(persp-frame-switch +workspaces-main (or frame (selected-frame))))))
|
||||
(persp-frame-switch +workspaces-main (or frame (selected-frame))))
|
||||
;; Make sure warnings are visible (fix #319)
|
||||
(when-let* ((warnings (get-buffer "*Warnings*")))
|
||||
(display-buffer-in-side-window
|
||||
warnings '((window-height . shrink-window-if-larger-than-buffer))))))
|
||||
|
||||
(defun +workspaces|init-persp-mode ()
|
||||
;; Remap `buffer-list' to current workspace's buffers in `doom-buffer-list'
|
||||
|
Reference in New Issue
Block a user