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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making Emacs 22 startup like Emacs 21


From: Kevin Rodgers
Subject: Re: making Emacs 22 startup like Emacs 21
Date: Fri, 16 Nov 2007 11:11:17 -0700
User-agent: Thunderbird 1.5.0.13 (Macintosh/20070809)

Sven Joachim wrote:
Will Parsons <oudeis@nodomain.invalid> writes:

I find the new Emacs 22 startup behaviour quite annoying in that it puts
up a splash screen even when Emacs is invoked with a file name.  I've
found the inhibit-splash-screen variable to inhibit the splash screen
entirely, but I'd like to keep the splash screen if Emacs is invoked
without arguments - just inhibit it if a file is specified.  Is there
any way to get this to work like Emacs 21?

I've just put these 2¢ into my .emacs, which seem to do the trick:

(when (> (length command-line-args) 1)

That doesn't distinguish file names from other command line arguments
such as options.  A better test might be

        (> (length (buffer-list) 2)

assuming that with no file name arguments just the *scratch* and
*Messages* buffers exist.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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