Disable or move Tramp temporary files reddit / emacs ---------------------------------------------------------------------- jack-face · 2022-04-13 20:12 Forgive me if this has been already answered. My google-fu is not that good and I'm having hard time formulating the search query. So, how do I prevent tramp from creating the files that start with `.#<>` on the remote machine. If disabling is not possibile, can I move them to a temporary a directory? The build process look for all files in a directory and do some compiling and these files break the build process. To exclude the files starting with `.#`, I have to modify the build process, which sadly I'm not allowed to do. So, my only hope is to change the way tramp generate those files. Is there any way? **I'm not even sure whether it is tramp which is generating those files, I would appreciate any help. Thank you** ---------------------------------------------------------------------- Illiamen · 2022-04-13 21:04 I think that looks like a lockfile. I am not very familiar with them. Try here: - https://www.gnu.org/software/tramp/#Auto_002dsave-File-Lock-and- Backup - https://www.gnu.org/software/emacs/manual/html_node/elisp/File- Locks.html ---------------------------------------------------------------------- glg00 · 2022-10-18 08:26 \`(setq remote-file-name-inhibit-locks t)\`