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: Robert Marshall
Subject: Re: how can tell emacs not to load desktop when invoked by mutt?
Date: Thu, 24 Apr 2003 12:41:06 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.95 (i386-msvc-nt5.0.2195)

On Thu, 24 Apr 2003, Alan Mackenzie wrote:

> David Kastrup <dak@gnu.org> wrote on 24 Apr 2003 03:45:44 +0200:
>> wang yin <wy@wangyin.com> writes:
> 
>>> I set my mutt's editor variable to "emacs -nw" :) But I use the
>>> "desktop package". So every time I reply a mail, emacs will start
>>> over again and load ~/.emacs
> 
>> You rather want to look up "emacsclient" in th Emacs manual.
> 
> That's not to say that "emacs --no-desktop" wouldn't be a useful
> thing.
> 

True, I have the following for when I want a fast start and I don't
care what I was looking at last session

      ;; some cheating here ....
  (setq desktop-basefilename
        (convert-standard-filename ".emacs.desktop"))

  (if (and (file-exists-p (concat "~/" desktop-basefilename))
           (yes-or-no-p "Load desktop? "))
      (progn
        (require 'desktop)
        ....
but that may be too much noise for some!

Robert
-- 
Poetry's not window cleaning.
It breaks the glass.
-- Chase Twichell


reply via email to

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