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 I have seen another file popping up with .#filename.org.

What is this file for? How can I make Emacs put them into another directory too?

  • 1
    It's a lockfile to prevent another emacs from overwriting your changes. There's no provision for putting them somewhere else (but you can turn them off by setting create-lockfiles to nil)
    – rpluim
    Jan 14 at 14:53
  • If teh file is saved the lock file is destroyed, that means in my specific case I actually do not need to have a way to make emacs create them in another dirctory. I did not want the emacs specific files to clutter my other editors direcotry view. Also one can add a gitignore file to ignore tracking those files, there are comprehensie ready made gitignore files for emacs and many things.
    – sçuçu
    Jan 14 at 20:59

This site is temporarily in read only mode and not accepting new answers.

Browse other questions tagged .