Update README.md

This commit is contained in:
James Cherti
2026-02-10 10:47:34 -05:00
parent abecef8855
commit 70b487b62b

View File

@@ -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)
(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`.)
;; 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))
(add-hook 'emacs-startup-hook #'easysession-save-mode 103)))
```
### Configuring markdown-mode (e.g., README.md syntax)