[Top][All Lists]

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

Re: Emacs configuration

From: Kevin Rodgers
Subject: Re: Emacs configuration
Date: Mon, 30 Sep 2002 11:02:52 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

arthur.chereau wrote:

- How is it possible to force emacs to confirm when killing the *scratch* 
buffer ?

(defun scratch-kill-buffer-query-function ()
 (cond ((equal (buffer-name) "*scratch*")
         (yes-or-no-p "Do you really want to kill the *scratch* buffer? "))

(add-hook 'kill-buffer-query-function 'scratch-kill-buffer-query-function)

<a href="mailto:&lt;kevinr&#64;;";>Kevin Rodgers</a>

reply via email to

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