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
--- 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)