Automatically call persistent-scratch-mode on *scratch*

This commit is contained in:
Case Duckworth 2021-09-01 18:14:23 -05:00
parent 31d5d1f4ce
commit e299de4a0f
1 changed files with 6 additions and 1 deletions

View File

@ -1794,7 +1794,12 @@ browser defined in `browse-url-secondary-browser-function'."
(setup (:straight persistent-scratch)
(:option persistent-scratch-backup-directory (acdw/dir "scratch" t)
persistent-scratch-keep-n-newest-backups 12)
(persistent-scratch-setup-default))
(persistent-scratch-setup-default)
(mapc (lambda (buf)
(with-current-buffer buf
(when (funcall persistent-scratch-scratch-buffer-p-function)
(persistent-scratch-mode +1))))
(buffer-list)))
(setup (:straight restart-emacs)
(defun emacs-upgrade (&optional update-packages)