From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: Using only one emacs session
Date: Fri, 15 May 2009 14:48:04 +0200 [thread overview]
Message-ID: <7c63g2a5x7.fsf@pbourguignon.anevia.com> (raw)
In-Reply-To: f2330210-e957-44f7-86fb-4aa8ea4e1c20@g20g2000vba.googlegroups.com
Francis Moreau <francis.moro@gmail.com> writes:
> After using emacs for a couple of years now, I'm still not satisfied
> on the way I'm using it.
>
> I have a couple of emacs processes, each of them dedicated for a
> specific task: for example, emacs #1 is used to work on project #1,
> emacs #2 for project #2, emacs #3 used for email, irc...
>
> The advantage of this is that each emacs can be customized according
> to the project it tracks: for example project #1 has a peculiar
> compile command ("make -j4...") whereas project #2 does "gcc -Wall..."
> for compiling the project.
>
> Also I like to have some specific buffer layouts to be easily set so I
> use the 'window' package: for example I keep in window #2 of emacs #3
> some buffers doing irc on a specific irc server.
>
> The drawbacks of that is the multiple instance of emacs: each instance
> can't exchange data, emacsclient is more difficult to setup...
>
> So I'm wondering how other people work and if someone found out THE
> right answer. I know that some people use only one emacs session for
> doing all of their work but for now it doesn't seem very practical but
> I'm probably missing something.
There are good advantages to work as you do, if really you have
several projects going on in parallel.
In my case, in general I have one emacs used for development,
and two more, one for erc, and another for gnus.
Since erc and gnus work with the network, sometimes there are delays
or just time consuming processing in gnus, and since emacs lacks
threads, it would lock the development buffers. So I keep several
processes to be able to work while gnus fetch articles, etc. Besides,
I also use cvs or cutting edge versions of emacs that may crash
sometimes, so it's good to be able to crash one without losing the
others.
Now about data sharing across emacs processes, it's not really a
problem, you can still cut-and-paste between emacs processes, or you
can open the same file, and the emacs processes are careful not to
overwrite it when you update it from another emacs.
One thing that makes it easy is actually a window manager such as
ratpoison which allows you to switch from one emacs process to another
with a key choard. Instead of doing C-x 5 o to switch to another
frame, I type C-t n.
Remains the problem of emacsclient. We would have to modify the
server code (cf server-start) to create one socket per process instead
of one socket per user, and then pass a -s option to emacsclient to
select the process we want.
--
__Pascal Bourguignon__
next prev parent reply other threads:[~2009-05-15 12:48 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-15 11:04 Using only one emacs session Francis Moreau
2009-05-15 11:47 ` Peter Dyballa
2009-05-15 12:48 ` Pascal J. Bourguignon [this message]
2009-05-15 13:34 ` Francis Moreau
[not found] ` <mailman.7199.1242388057.31690.help-gnu-emacs@gnu.org>
2009-05-15 12:50 ` Pascal J. Bourguignon
2009-05-15 12:53 ` Francis Moreau
2009-05-15 13:36 ` Pascal J. Bourguignon
2009-05-15 13:45 ` Francis Moreau
2009-05-15 14:55 ` Peter Dyballa
2009-05-15 16:50 ` Suttles, Andrew C. (GRC-DSI0)
[not found] ` <mailman.7245.1242439486.31690.help-gnu-emacs@gnu.org>
2009-05-16 12:33 ` Francis Moreau
2009-05-18 13:14 ` Suttles, Andrew C. (GRC-DSI0)
[not found] ` <mailman.7205.1242399319.31690.help-gnu-emacs@gnu.org>
2009-05-15 16:02 ` Francis Moreau
2009-05-15 21:41 ` Pascal J. Bourguignon
2009-05-15 14:13 ` Michael Ekstrand
2009-05-15 14:38 ` Peter Dyballa
2009-05-16 11:14 ` Vagn Johansen
2009-05-15 13:38 ` Lowell Gilbert
2009-05-15 14:00 ` tomas
[not found] ` <mailman.7201.1242394726.31690.help-gnu-emacs@gnu.org>
2009-05-15 13:49 ` Francis Moreau
2009-05-15 17:07 ` William Xu
[not found] ` <mailman.7216.1242408514.31690.help-gnu-emacs@gnu.org>
2009-05-16 12:55 ` Francis Moreau
2009-05-16 15:43 ` Pascal J. Bourguignon
2009-05-16 21:53 ` Francis Moreau
2009-05-16 23:05 ` Pascal J. Bourguignon
2009-05-17 7:01 ` Francis Moreau
2009-05-17 15:32 ` Pascal J. Bourguignon
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=7c63g2a5x7.fsf@pbourguignon.anevia.com \
--to=pjb@informatimago.com \
--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.