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

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

Re: How to get rid of *GNU Emacs* buffer on start-up?


From: rustom
Subject: Re: How to get rid of *GNU Emacs* buffer on start-up?
Date: Wed, 24 Sep 2008 05:51:01 -0700 (PDT)
User-agent: G2/1.0

On Sep 24, 4:42 pm, Xah Lee <x...@xahlee.org> wrote:

> I actually have the line
> (setq buffer-offer-save t)
> in my code for new-empty-buffer, but emacs still closes the buffer
> without saving, seemingly contrary to its doc.

Do you have it on a hook? Like so?

(add-hook 'lisp-interaction-mode-hook (function (lambda () (setq
buffer-offer-save t))))

The above works for me -- asking to save the scratch buffer *if
changed*
Only problem is that fundamental-mode does not AFAIK have a hook.
Wonder why...


reply via email to

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