Created
January 31, 2013 01:46
-
-
Save beatak/4679211 to your computer and use it in GitHub Desktop.
I can't believe why I didn't set this earlier!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Desktop | |
;; naming is weird, but this is basically | |
;; saving the status of opened files | |
;; | |
(setq desktop-files-not-to-save "\\(^/[^/:]*:\\)") | |
(autoload 'desktop-save "desktop" nil t) | |
(autoload 'desktop-clear "desktop" nil t) | |
(autoload 'desktop-load-default "desktop" nil t) | |
(autoload 'desktop-remove "desktop" nil t) | |
(desktop-read) | |
(add-hook 'kill-emacs-hook 'desktop-save-in-desktop-dir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment