When the files are changed in the Emacs, a temporary file is created in the working directory, which is as follows: .#filename. The file is deleted when the buffer is saved.
.#filename
I found several of these types of temporary files in my remote Git repositories, and I thought it would be better to pin the bud to the source instead of configuring Git to ignore them for each project.
How can we configure Emacs to create these files in a directory /tmpinstead of a working directory?
/tmp
- 24.3 Emacs, :
(setq create-lockfiles nil)
fooobar.com/questions/92561/...
. auto-save-file-name-transforms , , . file.el /tmp. :
auto-save-file-name-transforms
file.el
(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" "/tmp/\\2" t))
/tmp temporary-file-directory. , /tmp. , auto-save-file-name-transforms (, , ), .
temporary-file-directory
Source: https://habr.com/ru/post/1538227/More articles:Git настройка, возврат терминала: команда не найдена - gitRegister bootstrap event handler in angular controller - javascriptint → int list is not compatible with type int → IEnumerable <'a> - c #Call IEnumerable.SelectMany - .netHow to build relative frequencies in R or Stata - rHow to create a “loading screen” for a first spa visit SPA session - angularjsIn python legend matplotlib shows the first entry of a list only - pythondust.js - render the first element of an array - jsonmultiple-value-bind cancel the first value - common-lispHow can I create a Python module in Hy? - pythonAll Articles