diff --git a/.emacs.d/lisp/main.el b/.emacs.d/lisp/main.el index ab4380f2..80ecbc84 100644 --- a/.emacs.d/lisp/main.el +++ b/.emacs.d/lisp/main.el @@ -276,6 +276,9 @@ (desktop-read) (remove-hook 'server-after-make-frame-hook 'ambrevar/desktop-init)) (add-hook 'server-after-make-frame-hook 'ambrevar/desktop-init)) + ;; 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") "\\'\\)")) ;; 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)