Clean up "lst:desktop-setup" and improve its comments
This commit is contained in:
parent
30876f44ad
commit
a1fd2d24a2
20
README.org
20
README.org
@ -3866,22 +3866,24 @@ Return \"Front Matter\" when current page is above the first headline."
|
|||||||
Listing [[lst:desktop-setup][setup desktop]] makes Emacs save its state between closing its session to
|
Listing [[lst:desktop-setup][setup desktop]] makes Emacs save its state between closing its session to
|
||||||
opening the next session.
|
opening the next session.
|
||||||
|
|
||||||
#+caption[Setup ~desktop~ to save Emacs sessions]:
|
#+caption[Setup =desktop= to save Emacs sessions]:
|
||||||
#+caption: Setup ~desktop~ to save Emacs sessions.
|
#+caption: Setup =desktop= to save Emacs sessions.
|
||||||
#+name: lst:desktop-setup
|
#+name: lst:desktop-setup
|
||||||
#+begin_src emacs-lisp -n :results silent
|
#+begin_src emacs-lisp -n :results silent
|
||||||
(with-eval-after-load 'emacs
|
(with-eval-after-load 'emacs
|
||||||
;; Load and configure `Org' before enabling `desktop-save-mode'.
|
;; GAV: I fail to implement the idea of ChatGPT on how to reload
|
||||||
(desktop-save-mode t)
|
;; `eww' pages automatically while restoring the desktop (idea is to
|
||||||
|
;; add save and restore handlers to `desktop-buffer-mode-handlers').
|
||||||
|
;; GAV: (setopt eww-restore-desktop t) fails and starts hesitantly.
|
||||||
|
;; GAV: I fail to code a function for setting the
|
||||||
|
;; `desktop-buffers-not-to-save-function' option.
|
||||||
(setopt desktop-buffers-not-to-save
|
(setopt desktop-buffers-not-to-save
|
||||||
(rx bos (or "*Apropos" "compilation*"))
|
(rx bos (or "*Apropos" "compilation*"))
|
||||||
desktop-modes-not-to-save
|
desktop-modes-not-to-save
|
||||||
'(emacs-lisp-mode image-mode tags-table-mode)))
|
'(emacs-lisp-mode image-mode tags-table-mode))
|
||||||
#+end_src
|
|
||||||
|
|
||||||
BUG: I fail to code a function to set the ~desktop-buffers-not-to-save-function~
|
(desktop-save-mode t))
|
||||||
option.
|
#+end_src
|
||||||
|
|
||||||
* Programming Tools
|
* Programming Tools
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user