fix(doom-dashboard,workspaces): module init order
Change (and simplify) the load order of Doom's dashboard and persp-mode so that the dashboard always initializes later. This and0ab6aba
should fix #5643. Fix #5643 Ref0ab6aba056
This commit is contained in:
parent
0ab6aba056
commit
e431dbc138
2 changed files with 3 additions and 9 deletions
|
@ -134,7 +134,7 @@ PLIST can have the following properties:
|
||||||
(add-hook 'persp-activated-functions #'+doom-dashboard-reload-maybe-h))
|
(add-hook 'persp-activated-functions #'+doom-dashboard-reload-maybe-h))
|
||||||
(add-hook 'persp-before-switch-functions #'+doom-dashboard--persp-record-project-h)))
|
(add-hook 'persp-before-switch-functions #'+doom-dashboard--persp-record-project-h)))
|
||||||
|
|
||||||
(add-hook 'doom-init-ui-hook #'+doom-dashboard-init-h)
|
(add-hook 'doom-init-ui-hook #'+doom-dashboard-init-h 'append)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Faces
|
;;; Faces
|
||||||
|
|
|
@ -37,15 +37,9 @@ stored in `persp-save-dir'.")
|
||||||
;; Packages
|
;; Packages
|
||||||
|
|
||||||
(use-package! persp-mode
|
(use-package! persp-mode
|
||||||
|
:unless noninteractive
|
||||||
:commands persp-switch-to-buffer
|
:commands persp-switch-to-buffer
|
||||||
:init
|
:hook (doom-init-ui . persp-mode)
|
||||||
(add-hook! 'doom-init-modules-hook
|
|
||||||
(defun +workspaces-init-h ()
|
|
||||||
(unless noninteractive
|
|
||||||
;; Remove default buffer predicate so persp-mode can put in its own
|
|
||||||
(delq! 'buffer-predicate default-frame-alist 'assq)
|
|
||||||
(require 'persp-mode)
|
|
||||||
(persp-mode +1))))
|
|
||||||
:config
|
:config
|
||||||
(setq persp-autokill-buffer-on-remove 'kill-weak
|
(setq persp-autokill-buffer-on-remove 'kill-weak
|
||||||
persp-reset-windows-on-nil-window-conf nil
|
persp-reset-windows-on-nil-window-conf nil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue