[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how can tell emacs not to load desktop when invoked by mutt?
From: |
Ehud Karni |
Subject: |
Re: how can tell emacs not to load desktop when invoked by mutt? |
Date: |
Thu, 24 Apr 2003 12:37:24 +0300 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 24 Apr 2003 09:04:51 +0800, wang yin <wy@wangyin.com> wrote:
>
> (load "desktop")
> (desktop-load-default)
> (desktop-read)
>
> Can anyone give an example how to set a conditional? Thanks!
I think the other replies to this post (emacsclient) are good but
there was no direct answer to the question. Here is my proposal:
1. Run the `mutt' command through a script.
2. Add an environment variable MUTT=ON.
3. Wrap your desktop loading in ~/.emcas :
(or (string-equal (or (getenv "MUTT") "-") "ON")
(progn
(load "desktop")
(desktop-load-default)
(desktop-read)))
Ehud.
- --
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
mailto:ehud@unix.mvs.co.il Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)
iD8DBQE+p7BTLFvTvpjqOY0RApzbAJ96hdbdIzYbhdHBK+7NsYZEd32jSACfcSS5
7/CHb0zCsMY0263fBWwbqHk=
=7pHI
-----END PGP SIGNATURE-----