help-gnu-emacs
[Top][All Lists]
Advanced

[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: Jiri Pejchal
Subject: Re: how can tell emacs not to load desktop when invoked by mutt?
Date: Thu, 24 Apr 2003 18:36:34 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

"Ehud Karni" <address@hidden> writes:

> > 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)))

Can emacs somehow test the command it was invoked with

emacs -nw /tmp/mutt-...

contains the string mutt?

Jiri Pejchal


reply via email to

[Prev in Thread] Current Thread [Next in Thread]