|
From: | Tak Kunihiro |
Subject: | Re: Looking for some recommended configurations for desktop-save-mode and savehist-mode. |
Date: | Sun, 17 Jan 2021 17:52:48 +0900 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) |
> Currently, I noticed the following configurations for > desktop-save-mode and savehist-mode on this website When don't you save desktop when quit emacs? (add-hook 'kill-emacs-hook #'sesame-desktop-save) (defun sesame-desktop-save () "Save desktop anyway." (interactive) (require 'desktop) (setq desktop-dirname user-emacs-directory) (let ((file (desktop-full-file-name))) (when (file-exists-p file) (delete-file file))) (desktop-save (expand-file-name desktop-dirname) t))
[Prev in Thread] | Current Thread | [Next in Thread] |