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

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

Re: Default directory in startup buffer


From: Jarmo Hurri
Subject: Re: Default directory in startup buffer
Date: Fri, 21 Jan 2011 10:41:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Mario Lassnig <mario@lassnig.net> writes:

> How about this for a clean slate,
> starting out with a clean scratch-buffer.
>
> (setq inhibit-startup-echo-area-message t)
> (setq inhibit-startup-screen t)
> (setq initial-scratch-message nil)
> (kill-buffer "*Messages*")

I guess that will work in a .emacs, but it has no effect in
site-start.el as I explained above.

> oh, and the scratch buffer does not have a directory, because it's not
> associated with a file.

Yes, and that is why default-directory becomes important. That is why we
are trying to set its value.

I understood something while experimenting with your suggestion. Earlier
I said that the workaround in site-start.el was

(kill-buffer "*GNU Emacs*")

which resulted in a clean screen and an error message. Well, the reason
why it worked was that while in site-start.el, there is no such buffer,
so the code actually caused an error. So my current workaround is to
cause an error in site-start.el.

-- 
Jarmo Hurri

Remove all garbage from header email address when replying, or just
use firstname.lastname@syk.fi .


reply via email to

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