# HG changeset patch # User Oleksandr Gavenko # Date 1606426506 -7200 # Node ID 4003042c0420f5f593a4a5bedb12680cc04d9b86 # Parent 25cc74027466431d4c881bd02ec293c305b637ce Disable stupid file locking. It breaks editing WSL files from Cygwin Emacs. https://emacs.stackexchange.com/questions/61962/what-is-interlocking-about https://cygwin.com/pipermail/cygwin/2020-November/246887.html diff -r 25cc74027466 -r 4003042c0420 .emacs-my --- a/.emacs-my Thu Nov 26 23:08:51 2020 +0200 +++ b/.emacs-my Thu Nov 26 23:35:06 2020 +0200 @@ -3906,6 +3906,11 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "auto save") +;; Disable stupid file locking. It breaks editing WSL files from Cygwin Emacs. +;; https://emacs.stackexchange.com/questions/61962/what-is-interlocking-about +;; https://cygwin.com/pipermail/cygwin/2020-November/246887.html +(setq create-lockfiles nil) + (setq auto-save-default t) ;; If nil autosave to different than original to buffer file. (setq auto-save-visited-file-name nil)