all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gary <help-gnu-emacs@garydjones.name>
To: help-gnu-emacs@gnu.org
Subject: Re: More emacs instances
Date: Fri, 05 Nov 2010 15:26:27 +0100	[thread overview]
Message-ID: <ib146j$k83$1@dough.gmane.org> (raw)
In-Reply-To: i43d0f$ia8$1@dough.gmane.org

Richard Riley wrote:
> Andrea Crotti writes:
>
>> I was thinking that for example I could load a different instance of
>> Emacs for gnus (and maybe other chatting programs).
...
>> And also how should I handle the different configuration?

> I use different command line options to determine how the init
> functions. More details can be found here :-
>
> http://edward.oconnor.cx/2010/08/standalone-gnus

Hmm. I couldn't get that to work exactly as I wanted it.

What I have is this, based on those suggestions:
,----[ .emacs.el ]
|
| (defvar starting-normally (not (member "-gnus" command-line-args)))
| 
| (add-to-list
|  'command-switch-alist
|  '("gnus" . (lambda (&rest ignore)
| 
|               ;; Start Gnus when Emacs starts
|               (add-hook 'emacs-startup-hook 'gnus t)
|               ;; Exit Emacs after quitting Gnus
|               (add-hook 'gnus-after-exiting-gnus-hook
|                         'save-buffers-kill-emacs)
|             )
| ))
| 
| ;; ... snippage ...
|
| (if starting-normally
|     (progn
|       ;; "Expensive requires / loads here that are not used with gnus
|       (require 'config-tramp)
|       ;; etc.
|
|     )
| )
|
`----

-- 
Gary        Please do NOT send me 'courtesy' replies off-list.
GNU Emacs 23.2.1
emacsclient 23.2




  reply	other threads:[~2010-11-05 14:26 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13 10:56 More emacs instances Andrea Crotti
2010-08-13 11:32 ` Thierry Volpiatto
2010-08-13 12:15 ` Richard Riley
2010-11-05 14:26   ` Gary [this message]
2010-08-13 12:45 ` Gary
     [not found] ` <mailman.14.1281699331.25007.help-gnu-emacs@gnu.org>
2010-08-13 13:13   ` Robert Marshall
2010-08-13 13:43 ` Drew Adams
2010-08-16  7:23   ` Gary
2010-08-13 13:52 ` Memnon Anon
2010-08-13 14:17   ` Andrea Crotti
2010-08-13 14:35     ` Richard Riley
2010-08-13 15:00       ` Andrea Crotti
2010-08-13 15:22         ` Richard Riley
2010-08-13 15:51           ` Andrea Crotti
2010-08-13 15:19       ` Memnon Anon
2010-08-13 15:27         ` Richard Riley
2010-08-15 17:13           ` Andrea Crotti
2010-08-15 17:30             ` Richard Riley
2010-08-16 14:26               ` Andrea Crotti
2010-08-16 15:20                 ` Richard Riley
2010-08-16 16:36                   ` Memnon Anon
2010-08-17 11:15                     ` Andrea Crotti
2010-08-18 20:56                       ` Memnon Anon
2010-08-17 13:22                   ` Andrea Crotti
2010-08-17 14:29                     ` Richard Riley
2010-08-17 16:00                       ` Andrea Crotti
2010-08-17 18:00                         ` Richard Riley
2010-08-17 23:20                           ` Andrea Crotti
2010-08-18 18:45                           ` Eric Abrahamsen
2010-09-06 17:17                             ` Andrea Crotti
2010-09-07  1:39                               ` Eric Abrahamsen
     [not found]                             ` <mailman.3.1283793504.2065.help-gnu-emacs@gnu.org>
2010-09-06 21:46                               ` Stefan Monnier
2010-08-13 14:57     ` Memnon Anon
     [not found]   ` <mailman.11.1281709100.21791.help-gnu-emacs@gnu.org>
2010-08-13 20:02     ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ib146j$k83$1@dough.gmane.org' \
    --to=help-gnu-emacs@garydjones.name \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.