Created
May 16, 2012 00:36
-
-
Save mattraibert/2706321 to your computer and use it in GitHub Desktop.
emacs autosave
This file contains 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
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(auto-save-default t) | |
'(auto-save-interval 20) | |
'(auto-save-timeout 1) | |
;; this doesn't actually work | |
'(inhibit-clash-detection t) | |
'(auto-save-visited-file-name t) | |
'(global-auto-revert-mode t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One problem is that this exposes an emacs bug where emacs fails to delete its lock files when it autosaves.
I added this line to my .profile and I run it all the time:
alias cleanmacs='find . -name ".#*" | xargs rm'