* storing elpa packages in different folder
@ 2022-05-09 19:00 Sivaram Neelakantan
2022-05-09 19:19 ` Eli Zaretskii
2022-05-09 19:51 ` Philip Kaludercic
0 siblings, 2 replies; 6+ messages in thread
From: Sivaram Neelakantan @ 2022-05-09 19:00 UTC (permalink / raw)
To: help-gnu-emacs
GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
I'm tryng to make all the packages to be installed in the following
directory
(setq user-emacs-directory "c:/gnu/initfiles/.emacs.d/") ;; in ~/.Emacs
but Emacs doesn't put it there but in C:\Users\siva\AppData\Roaming
what should I set to make it store where I want it?
getenv APPDATA points to the Roaming folder
getenv LOCALAPPDATA is C:\Users\siva\AppData\Local
sivaram
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: storing elpa packages in different folder
2022-05-09 19:00 storing elpa packages in different folder Sivaram Neelakantan
@ 2022-05-09 19:19 ` Eli Zaretskii
2022-05-11 13:00 ` Sivaram Neelakantan
2022-05-09 19:51 ` Philip Kaludercic
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-05-09 19:19 UTC (permalink / raw)
To: help-gnu-emacs
> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> Date: Tue, 10 May 2022 00:30:05 +0530
>
>
> GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
>
> I'm tryng to make all the packages to be installed in the following
> directory
>
> (setq user-emacs-directory "c:/gnu/initfiles/.emacs.d/") ;; in ~/.Emacs
>
> but Emacs doesn't put it there but in C:\Users\siva\AppData\Roaming
>
> what should I set to make it store where I want it?
>
> getenv APPDATA points to the Roaming folder
> getenv LOCALAPPDATA is C:\Users\siva\AppData\Local
The easiest way is to set the HOME environment variable to point to
c:/gnu/initfiles/.emacs.d/. Do this system-wide (via the Properties
of your computer), and your problem will be solved.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: storing elpa packages in different folder
2022-05-09 19:00 storing elpa packages in different folder Sivaram Neelakantan
2022-05-09 19:19 ` Eli Zaretskii
@ 2022-05-09 19:51 ` Philip Kaludercic
2022-05-11 13:04 ` Sivaram Neelakantan
1 sibling, 1 reply; 6+ messages in thread
From: Philip Kaludercic @ 2022-05-09 19:51 UTC (permalink / raw)
To: Sivaram Neelakantan; +Cc: help-gnu-emacs
Sivaram Neelakantan <nsivaram.net@gmail.com> writes:
> GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26
>
> I'm tryng to make all the packages to be installed in the following
> directory
>
> (setq user-emacs-directory "c:/gnu/initfiles/.emacs.d/") ;; in ~/.Emacs
>
> but Emacs doesn't put it there but in C:\Users\siva\AppData\Roaming
Not sure about w64-mingw32, but perhaps you have to set this in the
early-init.el ((elisp) Init File) file, because package is automatically
loaded.
> what should I set to make it store where I want it?
>
> getenv APPDATA points to the Roaming folder
> getenv LOCALAPPDATA is C:\Users\siva\AppData\Local
>
>
> sivaram
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: storing elpa packages in different folder
2022-05-09 19:19 ` Eli Zaretskii
@ 2022-05-11 13:00 ` Sivaram Neelakantan
2022-05-11 13:18 ` Eli Zaretskii
0 siblings, 1 reply; 6+ messages in thread
From: Sivaram Neelakantan @ 2022-05-11 13:00 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, May 09 2022,Eli Zaretskii wrote:
[snipped 17 lines]
>
> The easiest way is to set the HOME environment variable to point to
> c:/gnu/initfiles/.emacs.d/. Do this system-wide (via the Properties
> of your computer), and your problem will be solved.
>
Thanks for this. There's a few custom cmd/powershell scripts that
seem to set HOME/read HOME that may stop working if I change it
system-wide.
sivaram
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: storing elpa packages in different folder
2022-05-09 19:51 ` Philip Kaludercic
@ 2022-05-11 13:04 ` Sivaram Neelakantan
0 siblings, 0 replies; 6+ messages in thread
From: Sivaram Neelakantan @ 2022-05-11 13:04 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, May 09 2022,Philip Kaludercic wrote:
[snipped 11 lines]
> Not sure about w64-mingw32, but perhaps you have to set this in the
> early-init.el ((elisp) Init File) file, because package is automatically
> loaded.
from the info manual, I see this entry
Emacs looks for your init file using the filenames ‘~/.emacs.el’,
‘~/.emacs’, or ‘~/.emacs.d/init.el’ in that order;
can you explain a little more of what you're suggesting please?
sivaram
--
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: storing elpa packages in different folder
2022-05-11 13:00 ` Sivaram Neelakantan
@ 2022-05-11 13:18 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2022-05-11 13:18 UTC (permalink / raw)
To: help-gnu-emacs
> From: Sivaram Neelakantan <nsivaram.net@gmail.com>
> Date: Wed, 11 May 2022 18:30:52 +0530
> User-Mail-Address: nsivaram.net@gmail.com
>
> On Mon, May 09 2022,Eli Zaretskii wrote:
>
>
> [snipped 17 lines]
>
> >
> > The easiest way is to set the HOME environment variable to point to
> > c:/gnu/initfiles/.emacs.d/. Do this system-wide (via the Properties
> > of your computer), and your problem will be solved.
> >
>
> Thanks for this. There's a few custom cmd/powershell scripts that
> seem to set HOME/read HOME that may stop working if I change it
> system-wide.
My advice is to adapt those other scripts as well. Setting HOME
outside of Emacs (and any other program) is the best way of doing such
customizations; anything else comes with caveats that will bite you
some day.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-05-11 13:18 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-09 19:00 storing elpa packages in different folder Sivaram Neelakantan
2022-05-09 19:19 ` Eli Zaretskii
2022-05-11 13:00 ` Sivaram Neelakantan
2022-05-11 13:18 ` Eli Zaretskii
2022-05-09 19:51 ` Philip Kaludercic
2022-05-11 13:04 ` Sivaram Neelakantan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).