From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: windows installer Date: Sun, 12 Nov 2017 20:42:15 +0200 Message-ID: <83h8tzmj94.fsf@gnu.org> References: <795606216.288650.1510476987589@mail.libero.it> <83r2t3n3c8.fsf@gnu.org> <1831176140.285570.1510496865508@mail.libero.it> <83lgjbmtbs.fsf@gnu.org> <1085917998.292094.1510507954665@mail.libero.it> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1510512142 17034 195.159.176.226 (12 Nov 2017 18:42:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 18:42:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 19:42:17 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eDxCy-00042V-UN for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 19:42:17 +0100 Original-Received: from localhost ([::1]:50962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDxD4-0001Ox-Gp for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 13:42:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDxCx-0001Of-75 for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:42:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDxCu-000111-4i for emacs-devel@gnu.org; Sun, 12 Nov 2017 13:42:15 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDxCu-00010v-1A; Sun, 12 Nov 2017 13:42:12 -0500 Original-Received: from [176.228.60.248] (port=4702 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eDxCt-0003hV-AR; Sun, 12 Nov 2017 13:42:11 -0500 In-reply-to: <1085917998.292094.1510507954665@mail.libero.it> (message from Angelo Graziosi on Sun, 12 Nov 2017 18:32:34 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220108 Archived-At: > Date: Sun, 12 Nov 2017 18:32:34 +0100 (CET) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org > > 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.