Skip to content

Commit

Permalink
Fix doomemacs#5109: startup files not added to main persp
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed May 28, 2021
1 parent 33dbae7 commit 84e1554
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/ui/workspaces/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,8 @@ stored in `persp-save-dir'.")
winner-ring-alist alist
winner-pending-undo-ring pending-undo-ring)))))

;; We don't rely on the built-in mechanism for auto-registering a buffer to
;; the current workspace; some buffers slip through the cracks. Instead, we
;; 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)
;;;; Registering buffers to perspectives
(add-hook! 'doom-switch-buffer-hook
(defun +workspaces-add-current-buffer-h ()
"Add current buffer to focused perspective."
(or (not persp-mode)
Expand Down

0 comments on commit 84e1554

Please sign in to comment.