Questions tagged [lock-files]
5 questions
20
votes
2 answers
Save lock-files to a directory instead of disabling them
Emacs 24 introduced the ability to disable the creation of the infamous .#file-name lock files.
Evaluating the following lisp form will completely disable Emacs ability to lock files to prevent concurrent changes.
Is there a way to set Emacs to…
user66
4
votes
1 answer
why is there always an auto-save file in the directory where the file I am editing?
I have specified both backup directory and auto-save directory.
;; set auto-save intervals
(setq auto-save-interval 25)
(setq auto-save-include-big-deletions t)
; auto save path
(defvar autosave-dir (concat "C:/temp/emacsbackup/autosave/"…

tony
- 113
- 8
1
vote
1 answer
Configuring dedicated directory for lock files and auto save files on MS-Windows
How do I configure a dedicated location for lock files and auto-save files that works on MS-Windows, GNU/Linux, and macOS? I'm using GNU Emacs 28.2
The following works on GNU/Linux but not on MS-Windows for me:
(setq lock-file-name-transforms
…

Victor Lyuboslavsky
- 111
- 2
1
vote
1 answer
What are .#foo files?
I have placed my autosave and backup files in a single directory .emacs-saves.
Backup files appear as ~foo
Autosave files appear as #foo#
But Emacs seems to also generate .#foo in the current directory whenever a change is made in a buffer.
What's…

Rtsne42
- 489
- 5
- 13
0
votes
1 answer
How can I make Emacs put files named like .#filename into another directory too
I want my autosave files and backup files, e.g. #filename.org# and filename.org~ files, not to clutter the directory in my code repo that is in TypeScript.
I have popped into a way to place inside another directory and it worked. However, after that…

sçuçu
- 275
- 1
- 10