From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Guido Van Hoecke Newsgroups: gmane.emacs.help Subject: Re: How to have two parallel emacs environments? Date: Tue, 25 Mar 2014 17:05:54 +0100 Message-ID: References: <8761n3qkb9.fsf@web.de> <87txamiglv.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1395764075 18306 80.91.229.3 (25 Mar 2014 16:14:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2014 16:14:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Pascal J. Bourguignon" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 17:14:44 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 1WSTzt-0003b8-5i for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 17:14:41 +0100 Original-Received: from localhost ([::1]:42740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSTzs-0007Tn-I8 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2014 12:14:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSTux-000668-Db for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 12:14:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSTrS-0004N9-TE for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 12:09:35 -0400 Original-Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:56566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSTrS-0004Mz-IY for help-gnu-emacs@gnu.org; Tue, 25 Mar 2014 12:05:58 -0400 Original-Received: by mail-ee0-f43.google.com with SMTP id e53so632146eek.2 for ; Tue, 25 Mar 2014 09:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=BpiOtyIVgzesIXFKskCKKbe9LCzQ3sypnQRIVgV+dLc=; b=AcDZ5KGdzD0Vws3b3svOCiBqgLhFPks0iLA3L/F0hie7KDpyq8DFVuMDEN5bHIT21Y zQIHIvQum/1cTiWIqlxrXEHZXAeQw+Tkq8p89SPtR3pwU5oBD+0t1a2PaRSfdTeBqlf5 tAZCpsFjnrZmds+QffoOVqwC1RfUZVAlkpH3PglS1MqWl8qlu7ucMsVRR1y9llBaAGvM NjwHRr0rL9enQIEKQI2q+8OWUYj3tua+ftKPXxmzzh6xle11KIRkBBisaOvvstXcdAWS SkA8n+cKhk6tQ3u1ZD72lXLrMKRS5YZoXXZDN2KpQbSgZvFtdka0iDdyyqYm27N9sBwv iB6A== X-Received: by 10.14.182.68 with SMTP id n44mr12894960eem.6.1395763557521; Tue, 25 Mar 2014 09:05:57 -0700 (PDT) Original-Received: from zac-3.vanhoecke.org (78-20-180-173.access.telenet.be. [78.20.180.173]) by mx.google.com with ESMTPSA id 48sm41034674eei.24.2014.03.25.09.05.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2014 09:05:56 -0700 (PDT) In-Reply-To: <87txamiglv.fsf@kuiper.lan.informatimago.com> (Pascal J. Bourguignon's message of "Tue, 25 Mar 2014 13:54:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::22b 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:96750 Archived-At: Hi Pacal, "Pascal J. Bourguignon" writes: > 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: > > ;; [=E2=80=A6] > (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 ou= r 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)))) One more for my setup files :) Thanks. Guido -- Laughter is the closest distance between two people. -- Victor Borge