summary refs log tree commit diff stats
path: root/init.el
diff options
context:
space:
mode:
authorCase Duckworth2021-09-01 18:14:23 -0500
committerCase Duckworth2021-09-01 18:14:23 -0500
commite299de4a0f833174dcfe4ccc1c0e39c28caa8a0c (patch)
treef559b9997a35769a02103b160f203f00ccb2b3f2 /init.el
parentFix server-frame bug (diff)
downloademacs-e299de4a0f833174dcfe4ccc1c0e39c28caa8a0c.tar.gz
emacs-e299de4a0f833174dcfe4ccc1c0e39c28caa8a0c.zip
Automatically call persistent-scratch-mode on *scratch*
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.el b/init.el index 288e988..fbf5296 100644 --- a/init.el +++ b/init.el
@@ -1794,7 +1794,12 @@ browser defined in `browse-url-secondary-browser-function'."
1794(setup (:straight persistent-scratch) 1794(setup (:straight persistent-scratch)
1795 (:option persistent-scratch-backup-directory (acdw/dir "scratch" t) 1795 (:option persistent-scratch-backup-directory (acdw/dir "scratch" t)
1796 persistent-scratch-keep-n-newest-backups 12) 1796 persistent-scratch-keep-n-newest-backups 12)
1797 (persistent-scratch-setup-default)) 1797 (persistent-scratch-setup-default)
1798 (mapc (lambda (buf)
1799 (with-current-buffer buf
1800 (when (funcall persistent-scratch-scratch-buffer-p-function)
1801 (persistent-scratch-mode +1))))
1802 (buffer-list)))
1798 1803
1799(setup (:straight restart-emacs) 1804(setup (:straight restart-emacs)
1800 (defun emacs-upgrade (&optional update-packages) 1805 (defun emacs-upgrade (&optional update-packages)