From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans BKK Newsgroups: gmane.emacs.help Subject: Independent differently-configured instances running concurrently Date: Mon, 28 Apr 2014 08:39:13 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1398699692 23574 80.91.229.3 (28 Apr 2014 15:41:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2014 15:41:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 28 17:41:25 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 1WengK-0007Zu-Ma for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 17:41:24 +0200 Original-Received: from localhost ([::1]:44605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WengK-00066O-9g for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Apr 2014 11:41:24 -0400 X-Received: by 10.67.4.170 with SMTP id cf10mr11775442pad.31.1398699553925; Mon, 28 Apr 2014 08:39:13 -0700 (PDT) X-Received: by 10.182.96.133 with SMTP id ds5mr44629obb.16.1398699553804; Mon, 28 Apr 2014 08:39:13 -0700 (PDT) Original-Path: usenet.stanford.edu!l13no11666716iga.0!news-out.google.com!gi6ni629igc.0!nntp.google.com!l13no11666715iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2602:306:334f:a5e0:5cb7:54b4:7312:47e0; posting-account=IUdGewoAAACF9WtA3i8stuVyXNk2FqaH Original-NNTP-Posting-Host: 2602:306:334f:a5e0:5cb7:54b4:7312:47e0 User-Agent: G2/1.0 Injection-Date: Mon, 28 Apr 2014 15:39:13 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205152 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:97418 Archived-At: I'm investigating how to run completely separate instances of emacs concurrently. For example, * highly customized but relatively stable "production" setup used for exploring source-code, docs, creating my own self-doc-set * basically unmodified "base" setup for learning vanilla and comparison purposes * scratch-experimental setup for testing packages, comparing their mods to vanilla, etc It seems many people to do this with something like: emacs -q -title custom -l "~/path/to/custom/init.el" \ --eval "(run-hooks 'after-init-hook)" but from a bit of research, it seems there are two disadvantages to this approach. 1 the "-q" option disables saving normal customizations and 2 non-standard eval ordering compared to running via the normal "~/.emacs.d/init.el" process. So I'm looking for feedback on an alternative approach that would give me a stock-standard setup for each instance. So far, it seems to me that launching via a script that sets a separate $HOME for each instance could work, e.g. #!/bin/bash HOME=$HOME/emacs/homes/vanilla export PATH="~/.cask/bin:$PATH" /bin/bash # emacs Many of these instances are being tracked via git, hence the preference for opening a prompt from which I can launch emacs rather than going straight in. Note I'm a bit of a *nix noob, so feedback on the bash scripting side would be most welcome, in addition to anything emacs-specific. So do you think this will work? Is there any potential problem of the different instances "stepping" on each other, either in RAM or perhaps writing back to global init configs? Any other comments welcome, expect perhaps those along the lines of "your learning process is too complicated" 8-)