Disable stupid file locking. It breaks editing WSL files from Cygwin Emacs.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 26 Nov 2020 23:35:06 +0200
changeset 1646 4003042c0420
parent 1645 25cc74027466
child 1647 e3ecb49df5d4
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
.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)