Desktop: Don't restore any file

master
Pierre Neidhardt 2019-04-03 10:44:01 +02:00
parent 2d3849374b
commit d586fffdf7
1 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,8 @@
;; Don't save crytped files since they can't be restored.
(setq desktop-files-not-to-save
(concat (substring desktop-files-not-to-save 0 -2) "\\|" (regexp-quote ".gpg") "\\'\\)"))
;; Or don't save any file, for faster startup and less problems.
(setq desktop-files-not-to-save ".")
;; Discarding PDFs and images makes it lighter.
(add-to-list 'desktop-modes-not-to-save 'pdf-view-mode)
(add-to-list 'desktop-modes-not-to-save 'image-mode)