From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Marshall Newsgroups: gmane.emacs.help Subject: Re: how can tell emacs not to load desktop when invoked by mutt? Date: Thu, 24 Apr 2003 12:41:06 +0100 Organization: ..when the revolution comes Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <1o388b.r5.ln@acm.acm> Reply-To: robert@chezmarshall.freeserve.co.uk NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051184816 4442 80.91.224.249 (24 Apr 2003 11:46:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2003 11:46:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 13:46:54 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 198fBm-00019U-00 for ; Thu, 24 Apr 2003 13:46:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 198fAU-0002qX-09 for gnu-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2003 07:45:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!195.102.208.198!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 195.102.208.198 Original-X-Trace: fu-berlin.de 1051184466 7587496 195.102.208.198 (16 [66208]) X-Home-Page: http://www.chezmarshall.freeserve.co.uk User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.95 (i386-msvc-nt5.0.2195) Cancel-Lock: sha1:K+Ul1aOOoVU633MI1znUJ0aAOPc= Original-Xref: shelby.stanford.edu gnu.emacs.help:112271 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8769 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8769 On Thu, 24 Apr 2003, Alan Mackenzie wrote: > David Kastrup wrote on 24 Apr 2003 03:45:44 +0200: >> wang yin 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