Fork me on GitHub
#emacs
<
2021-07-25
>
edo12:07:39

Hey everyone 👋 while using Emacs, how can I avoid buffer files and specific Emacs’ files to be in my project folders? This is becoming a bit cumbersome as I see them and need to avoid them while using magit / git.

simonkatz13:07:45

I don’t know the answer to your question, but you can set things up so that Git ignores those files in all projects: https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer

narendraj915:07:49

What do you mean by "buffer files" and "specific Emacs' files"?

edo17:07:39

As an example, all this tilda files. I could certainly gitignore them but is there any better way of saving these files in a specific folder outside each project folder?

hindol17:07:49

Are you using a pre-configured Emacs distribution similar to Doom/Prelude/Spacemacs etc. I am using Doom and this has never been a problem for me. I think Doom configures Emacs to put all extra files to a special directory and not in the current directory alongside your project files.

edo17:07:46

I’m not using any distro. I’m configuring Emacs from scratch to fit my needs. In the future I might use Doom but for now I think this is a great exercise. :thinking_face:

edo17:07:03

I know Doom handles this out-of-the-box (someone told me, not that I know by experience).

edo17:07:09

Oooh, that’s exactly what I need! Thanks @UJRDALZA5 🚀

edo17:07:46

This is such a great slack! People really enjoy to help. ❤️ Thanks all!

metal 2