Replies: 4 comments 3 replies
-
Yeah, this has been (lightly) bothering me for a long time as well. What are you proposing we do about it? That I add a
|
Beta Was this translation helpful? Give feedback.
-
Jonas Bernoulli ***@***.***> writes:
Yeah, this has been (lightly) bothering me for a long time as well. What are you proposing instead?
That I add a `no-littering-Q.el`?
But why not just use `no-littering.el`-proper in that case as well?
```
alias emacsq="emacs -Q -L ~/.config/emacs/lib/no-littering -L ~/.config/emacs/lib/compat -l no-littering"
```
That will not work when I have no control over how emacs is started
(like when using Makefile).
Of course, I can still configure bash and every project to use the
alternative emacs command, but that's no less awkward than having
spurious files.
One possibility might be installing "site-file" - it will not be loaded
with emacs -Q, but at least it will be loaded with emacs -q.
A more reliable option would be contributing to Emacs upstream.
May it be that writing into .emacs.d from emacs -Q can be considered a
bug?
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
Beta Was this translation helpful? Give feedback.
-
Jonas Bernoulli ***@***.***> writes:
> A more reliable option would be contributing to Emacs upstream.
I see `no-littering` as a kind of band-aid until Emacs handles "this", and don't think that adding it more or less as-is to Emacs would be the right way. But I agree, this shouldn't require a package that isn't part of Emacs itself.
`locate-user-emacs-file` was a step in the right direction but unfortunately didn't take it far enough.
...
Hmm. I did not mean to implement customized directory structure in the
core. (It is indeed a nice goal, but certainly not easy to do)
What I had in mind is that emacs -Q should not touch .emacs.d at all,
like it refuses to save customized variables. Instead,
`locate-user-emacs-file' should point to a throwaway folder when emacs
is started with -Q command line option.
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
Beta Was this translation helpful? Give feedback.
-
@yantar92 you could also always use But I agree that -Q should create a new throwaway folder. Makes a lot of sense. |
Beta Was this translation helpful? Give feedback.
-
I often need to run Emacs without my configuration, just via emacs -Q.
emacs -Q annoyingly creates a number of folders in .emacs.d. Most often, auto-save..., backup, and tramp. And eln-cache.
It would be nice to prevent this somehow.
Beta Was this translation helpful? Give feedback.
All reactions