From 70b487b62b65866a620e86cd10e701f3aa08b9cc Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 10 Feb 2026 10:47:34 -0500 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 23a20b4..c875f35 100644 --- a/README.md +++ b/README.md @@ -897,12 +897,21 @@ To configure **easysession**, add the following to `~/.emacs.d/post-init.el`: (global-set-key (kbd "C-c sR") #'easysession-reset) (global-set-key (kbd "C-c sd") #'easysession-delete) - ;; The depth 102 and 103 have been added to to `add-hook' to ensure that the - ;; session is loaded after all other packages. (Using 103/102 is particularly - ;; useful for those using minimal-emacs.d, where some optimizations restore - ;; `file-name-handler-alist` at depth 101 during `emacs-startup-hook`.) - (add-hook 'emacs-startup-hook #'easysession-load-including-geometry 102) - (add-hook 'emacs-startup-hook #'easysession-save-mode 103)) + (if (fboundp 'easysession-setup) + ;; The `easysession-setup' function adds hooks: + ;; - To enable automatic session loading during `emacs-startup-hook', or + ;; `server-after-make-frame-hook' when running in daemon mode. + ;; - To automatically save the session at regular intervals, and when + ;; Emacs exits. + (easysession-setup) + ;; Legacy + ;; The depth 102 and 103 have been added to to `add-hook' to ensure that the + ;; session is loaded after all other packages. (Using 103/102 is + ;; particularly useful for those using minimal-emacs.d, where some + ;; optimizations restore `file-name-handler-alist` at depth 101 during + ;; `emacs-startup-hook`.) + (add-hook 'emacs-startup-hook #'easysession-load-including-geometry 102) + (add-hook 'emacs-startup-hook #'easysession-save-mode 103))) ``` ### Configuring markdown-mode (e.g., README.md syntax)