From: Pascal Bourguignon <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Two separate emacs running ??
Date: Fri, 17 Aug 2007 18:07:37 +0200 [thread overview]
Message-ID: <87r6m2ywja.fsf@thalassa.informatimago.com> (raw)
In-Reply-To: mailman.4909.1187363917.32220.help-gnu-emacs@gnu.org
William Case <billlinux@rogers.com> writes:
> Hi;
>
> I am trying to figure out the best way to solve the following problem:
>
> I have a text file, c-notes.txt, which I open in a separate frame. I
> use it to make lots of notes to myself as a go about learning the 'C'
> language. I would probably like to start an elisp-notes.txt, etc. for
> other languages.
>
> I would like to open these text files with a completely different set of
> fonts, background colours, faces and minor modes from my usual emacs. I
> would also like to restrict those frames or instances of emacs to a few
> text files.
>
> 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?
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"
--
__Pascal Bourguignon__ http://www.informatimago.com/
NOTE: The most fundamental particles in this product are held
together by a "gluing" force about which little is currently known
and whose adhesive power can therefore not be permanently
guaranteed.
next parent reply other threads:[~2007-08-17 16:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.4909.1187363917.32220.help-gnu-emacs@gnu.org>
2007-08-17 16:07 ` Pascal Bourguignon [this message]
2007-08-17 16:54 ` Two separate emacs running ?? William Case
2007-08-17 19:33 ` Floyd L. Davidson
2007-08-17 15:18 William Case
2007-08-17 15:36 ` Peter Dyballa
2007-08-17 16:40 ` William Case
[not found] ` <mailman.4910.1187365029.32220.help-gnu-emacs@gnu.org>
2007-08-17 16:09 ` Pascal Bourguignon
2007-08-17 18:39 ` Eli Zaretskii
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=87r6m2ywja.fsf@thalassa.informatimago.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.