[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: |
Xah Lee |
Subject: |
Re: How to get rid of *GNU Emacs* buffer on start-up? |
Date: |
Mon, 22 Sep 2008 06:08:29 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Sep 20, 1:50 am, Alan Mackenzie <a...@muc.de> wrote:
> Hi, Xah.
>
> One small but important point you made:
>
> On Thu, Sep 18, 2008 at 04:50:50PM -0700, Xah Lee wrote:
> > Here are few minor reasons:
> > * When the scratch buffer is closed, emacs does not prompt user to
> > save it. This easily causes data loss.
>
> The other side of the argument is that *scratch* is intended for
> temporary, unimportant doodling, and for anybody who uses it this way,
> being continually prompted to save it would rapidly become annoying.
>
> I don't think there's a built in option to change this. However, you
> could write a hook function to add in this check. The hook is
> `kill-buffer-query-functions' and is documented in the Elisp manual on
> the page "Killing Buffers".
>
> [ .... ]
>
> > * modern_operations.el.
>
> A small point about this file (at
> <http://xahlee.org/emacs/modern_operations.el>): you don't really need
> the function `kill-line-backwards', since M-0 C-k will do this for you.
> However, that key binding is a bit clumsy. You could use it like this:
>
> (defun kill-line-backwards ()
> "Doc string ...."
> (interactive)
> (kill-line 0))
Thanks! I've taken your suggestion here.
Xah
∑ http://xahlee.org/
☄
- Re: How to get rid of *GNU Emacs* buffer on start-up?, (continued)
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Xah Lee, 2008/09/23
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Alan Mackenzie, 2008/09/22
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, David Kastrup, 2008/09/22
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Alan Mackenzie, 2008/09/24
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Xah, 2008/09/27
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Xah Lee, 2008/09/23
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Ross A. Laird, 2008/09/24
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Giorgos Keramidas, 2008/09/24
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Xah, 2008/09/25
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Alan Mackenzie, 2008/09/20
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?,
Xah Lee <=
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Kevin Rodgers, 2008/09/17
- Message not available
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Xah, 2008/09/17
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Christian Herenz, 2008/09/21
- Re: How to get rid of *GNU Emacs* buffer on start-up?, Joost Kremers, 2008/09/21
Re: How to get rid of *GNU Emacs* buffer on start-up?, William Case, 2008/09/24
Message not available