My company's I.T. department has assigned our HOME directory to a network server.
With the COVID-19 pandemic we are now using VPN to connect to the company's network.
Having to to go through VPN to access the HOME directory is slowing the initializing of Emacs.
(I have to access the HOME drive through Windows Explorer at least once or Emacs won't find it.)
I would like to have Emacs access the .emacs
file in my local user folder without changing the HOME environment variable. (I can't change the HOME directory because other applications use it.)
How do I tell Emacs to use a different folder for initialization, without command line? (I invoke Emacs by double clicking files in the Windows 10 Explorer.)
Note: The research of changing the .emacs
location all use the HOME environment variable.
I'm using Emacs 27.1 on Windows 10
user-emacs-directory
andpackage-user-dir
. There will be other variables along the way that will need to be adjusted as well, but those two should get you started. My.emacs
on the Windows machine is a one-liner that loads my entire setup that is stored elsewhere..emacs
file?.emacs
of your company HOME folder which loads your own custom.emacs
wherever it may be (e.g., locally). I.e., add the following one-liner to your company HOME folder.emacs
file:(load "/path/to/your/local/.emacs" nil t t nil)
Then, once you get that setup working, you may wish to add settings for the above-described variables to your local.emacs
file ... I can't realistically give a tutorial for setting those variables in just a few words within a comment here ...emacs -q -l /path/to/your/local/.emacs
perhaps in a shell script (or whatever Windows calls them: batch files?).emacs
did not have any effect.