From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: How to have two parallel emacs environments? Date: Tue, 25 Mar 2014 13:54:04 +0100 Organization: Informatimago Message-ID: <87txamiglv.fsf@kuiper.lan.informatimago.com> References: <8761n3qkb9.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1395752416 17507 80.91.229.3 (25 Mar 2014 13:00:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 13:00:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 14:00:27 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WSQxs-0000ld-St for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 14:00:25 +0100 Original-Received: from localhost ([::1]:41667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSQxs-0002lc-6S for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 09:00:24 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-X-Trace: individual.net qv9asKSDoIA1MT3GkIT3yA+zdhQBAMQstFlPQTHmcbMR7wg5YW Cancel-Lock: sha1:YzgwYjkxMDExMDFjNGZmZjBhNDJmZjA2N2ExODFhZjYwY2JkY2MyMA== sha1:FWpY/QS259mCcbai0nVP34vn34Q= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:204474 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96744 Archived-At: Luca Ferrari writes: > On Mon, Mar 24, 2014 at 11:54 PM, Michael Heerdegen > wrote: >> Guido Van Hoecke writes: >> >>> Is there any way to launch an emacs with a specific init file? >> >> I would do emacs -q -l /path/to/init-file >> > > Also the -u option could be an option to specify a per-user init file. > Or specifying a switch-function to call on startup in order to > configure the whole editor differently? If you load different configurations from ~/.emacs, you may want to set custom-file to tell emacs where to store the customizations. For example, I have this in my ~/.emacs: ;; […] (let ((configuration (find-configuration (hostname)))) (if configuration (let ((file (file-truename (cdr configuration)))) (load file) ;; setting custom-file needs to be done after we've customized our stuff ;; otherwise it may be overridden with an empty customization. (setq custom-file (or file custom-file))) (message "Found no configuration to load for %s" (hostname)))) -- __Pascal Bourguignon__ http://www.informatimago.com/ "Le mercure monte ? C'est le moment d'acheter !"