Emacs: how to disable. # create files

Possible duplicate:
Why does emacs create temporary symlinks for modified files?

Each time I edit a file, emacs creates a file similar to:

lrwxrwxrwx 1 vladimir vladimir 49 2011-11-23 19:20 .#models.py -> vladimir@host.15570 :1322037576 

I have already tried

 (setq auto-save-default nil) 

but without success. How to disable this behavior?

+6
source share
1 answer

As with emacs 24.3, you can disable the lock files using the "create-lockfiles" option in the Emacs configuration system or by directly setting the create-lockfiles variable to nil:

 (setq create-lockfiles nil) 

In previous versions of Emacs, it’s not possible to disable this feature through customization. You can crack the C code to prevent links from appearing. But this is probably more work than you want.

The links here are for locking files so that Emacs can recognize when someone else is editing the file. See the documentation here and here .

+12
source

Source: https://habr.com/ru/post/902231/


All Articles