Skip to content

Instantly share code, notes, and snippets.

@beatak
Created January 31, 2013 01:46
Show Gist options
  • Save beatak/4679211 to your computer and use it in GitHub Desktop.
Save beatak/4679211 to your computer and use it in GitHub Desktop.
I can't believe why I didn't set this earlier!
;; 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