move/store session files into the .cache directory

This commit is contained in:
2021-03-05 17:33:02 +01:00
parent 09e44e084b
commit 1240f4e194

View File

@@ -70,6 +70,17 @@
(setq savehist-file (concat user-cache-directory "history"))
(savehist-mode)
(use-package x-win
:defer t
:config
;; overwrite
(defun emacs-session-filename (session-id)
"Construct a filename to save the session in based on SESSION-ID.
Return a filename in `user-emacs-directory', unless the session file
already exists in the home directory."
(let ((basename (concat "session." session-id)))
(concat user-cache-directory basename))))
;;; desktop
(require 'desktop)
;; save session