emacs-devel
[Top][All Lists]
Advanced

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

Re: windows installer


From: Eli Zaretskii
Subject: Re: windows installer
Date: Sun, 12 Nov 2017 20:42:15 +0200

> Date: Sun, 12 Nov 2017 18:32:34 +0100 (CET)
> From: Angelo Graziosi <address@hidden>
> Cc: address@hidden
> 
>   https://stackoverflow.com/questions/350345/how-can-i-have-a-portable-emacs
> 
> and this answer seems interesting:
> 
>   create a directory in the root of your usb drive called 'home'.
>   create site-start.el in the site-lisp folder and then copy this and you are 
> all set to go.
> 
>   (defvar %~dp0 (substring data-directory 0 3)) (defvar usb-home-dir (concat 
> %~dp0 "home/"))
>   (setenv "HOME" usb-home-dir)
> 
> What do you think? It looks better (maybe not the last!) of the other using a 
> .bat file..

If you want the programs run by Emacs to inherit this value of HOME,
then yes, it looks good.



reply via email to

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