Update README.md
This commit is contained in:
17
README.md
17
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 sR") #'easysession-reset)
|
||||||
(global-set-key (kbd "C-c sd") #'easysession-delete)
|
(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
|
;; 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
|
;; session is loaded after all other packages. (Using 103/102 is
|
||||||
;; useful for those using minimal-emacs.d, where some optimizations restore
|
;; particularly useful for those using minimal-emacs.d, where some
|
||||||
;; `file-name-handler-alist` at depth 101 during `emacs-startup-hook`.)
|
;; 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-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)
|
### Configuring markdown-mode (e.g., README.md syntax)
|
||||||
|
|||||||
Reference in New Issue
Block a user