help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] little problem (avoid automatic creation directory .emacs.d)


From: Eli Zaretskii
Subject: Re: [h-e-w] little problem (avoid automatic creation directory .emacs.d)
Date: Wed, 25 Nov 2015 22:59:20 +0200

> From: pigreco erre <address@hidden>
> Date: Wed, 25 Nov 2015 16:16:52 +0100
> 
> I try to install my super editor :-) into USB and I use the 24.5 version.
> To complete the procedure I customize its behaviour. I write the following 
> code
> :
> 
> "(defvar usb-drive-letter (substring data-directory 0 3)) 
> (defvar usb-home-dir (concat usb-drive-letter "home/"))
> (setenv "HOME" usb-home-dir)"
   ^^^^^^^^^^^^^^^^^^^^^^^^^^
That's your problem, right there: you should set HOME in the
environment _outside_ Emacs, not as part of the init file.  Then Emacs
will use that directory from the start, instead of going to
AppData/Roaming.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]