[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Two separate emacs running ??
From: |
William Case |
Subject: |
Re: Two separate emacs running ?? |
Date: |
Fri, 17 Aug 2007 12:54:21 -0400 |
Thanks Pascal;
Your suggestions and my last post passed in the night.
On Fri, 2007-08-17 at 18:07 +0200, Pascal Bourguignon wrote:
> William Case <billlinux@rogers.com> writes:
> > Has anybody else done the same?
>
> Yes. Aquamacs uses frames for special purposes intensively, you could
> take example on the code there.
>
>
> > Could you point me to an existing solution?
>
> I would add a find-file-hook and test for these specific files, and in
> the hook set the frame as I want. For merely one file, I wouldn't
> use another emacs instances (though there's one parameter that cannot
> be made different in different frames: the frame border use the same
> face on all frames). Only for a process, since emacs isn't threaded,
> a long operation in a process can freeze emacs for some time, so I may
> use a different emacs for erc and gnus. If you use a different emacs,
> you need to use the window manager to focus on one emacs or another,
> while with a single emacs, you can focus to another frame with C-x 5
> o. But of course, if you use ratpoison, it can be workable, since
> then you can just type C-t o.
>
>
> > [...]
> > I thought of constructing a /.emacs2 file and having a completely new or
> > separate instance of emacs for these files. How would I do that so that
> > emacs2 could find /.emacs2 and not /.emacs on start up, if it is even
> > possible?
>
> Probably. Have you tried man emacs or emacs --help?
>
I started there.
>
>
> What I do, when I want to launch special purpose emacsen, is:
>
> alias special-purpose='emacs --eval "(my-special-purpose-function)"'
>
> and I set the defaults specially in my-special-purpose-function,
> loaded from my normal '~/.emacs'.
>
> I prefer to keep one .emacs (even across different systems!), and test
> inside it for the special circumstances, using these variables and
> others:
>
> ;; system-type darwin gnu/linux cygwin
> ;; system-name "naiad.informatimago.com" "host.example.com"
> ;; system-configuration "i686-pc-linux-gnu" "i686-pc-cygwin"
> ;; window-system nil x mac w32
> ;; emacs-major-version 18 19 20 21
> ;; emacs-minor-version 0 1 2 3
> ;; emacs-version "20.7.2" "21.2.1"
Your suggestions are within the bounds of what I already know (or think
I know, anyways) so I'll try that. Creating a new major mode might be a
reach for me.
--
Regards Bill