Fix #5109: startup files not added to main persp
This commit is contained in:
parent
33dbae7cb2
commit
84e1554f14
1 changed files with 2 additions and 6 deletions
|
@ -134,12 +134,8 @@ stored in `persp-save-dir'.")
|
||||||
winner-ring-alist alist
|
winner-ring-alist alist
|
||||||
winner-pending-undo-ring pending-undo-ring)))))
|
winner-pending-undo-ring pending-undo-ring)))))
|
||||||
|
|
||||||
;; We don't rely on the built-in mechanism for auto-registering a buffer to
|
;;;; Registering buffers to perspectives
|
||||||
;; the current workspace; some buffers slip through the cracks. Instead, we
|
(add-hook! 'doom-switch-buffer-hook
|
||||||
;; add buffers when they are switched to.
|
|
||||||
(setq persp-add-buffer-on-find-file nil
|
|
||||||
persp-add-buffer-on-after-change-major-mode nil)
|
|
||||||
(add-hook! '(doom-switch-buffer-hook server-visit-hook)
|
|
||||||
(defun +workspaces-add-current-buffer-h ()
|
(defun +workspaces-add-current-buffer-h ()
|
||||||
"Add current buffer to focused perspective."
|
"Add current buffer to focused perspective."
|
||||||
(or (not persp-mode)
|
(or (not persp-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue