Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created October 16, 2017 19:25
Show Gist options
  • Save dustinlacewell-wk/a1feb39286738fbdbee3494e73e66012 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/a1feb39286738fbdbee3494e73e66012 to your computer and use it in GitHub Desktop.
(defvar emacs-autosave-directory
(concat user-emacs-directory "autosaves/")
"This variable dictates where to put auto saves. It is set to a
directory called autosaves located wherever your .emacs.d/ is
located.")
(unless (file-exists-p (emacs-autosave-directory))
(make-directory (emacs-autosave-directory)))
(setq auto-save-file-name-transforms `((".*"
,emacs-autosave-directory t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment