From: Alan Mackenzie <acm@muc.de>
Subject: Re: Kill other buffers
Date: Tue, 13 Dec 2005 08:15:16 +0000 [thread overview]
Message-ID: <kuvlnd.46.ln@acm.acm> (raw)
In-Reply-To: dnkmif$7l9$1@online.de
Andreas R?hler <andreas.roehler@online.de> wrote on Mon, 12 Dec 2005
21:35:30 +0100:
> Right, or try that:
> (defun kill-all-buffers (&optional arg)
> "with arg, save all buffers before deleting them"
> (interactive "P")
> (if arg
> (save-some-buffers))
> (let ((pufferliste (buffer-list)))
> (while pufferliste
> (progn
> (if (not (equal (car pufferliste) (current-buffer)))
> (kill-buffer (car pufferliste)))
> (setq pufferliste (cdr pufferliste))))))
> ;; make a key at `C-c k'
> (global-set-key "\C-ck" 'kill-all-buffers)
Wow! You're a brave, brave man! With a binding like that in my .emacs,
I'd be trembling in fear every time I did C-x k, lest I accidentally
wiped out everything.
> ar
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next prev parent reply other threads:[~2005-12-13 8:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-11 17:52 Kill other buffers Pedro Sa da Costa
2005-12-12 16:52 ` Kevin Rodgers
[not found] ` <mailman.18999.1134409322.20277.help-gnu-emacs@gnu.org>
2005-12-12 20:35 ` Andreas Röhler
2005-12-13 8:15 ` Alan Mackenzie [this message]
[not found] <mailman.18814.1134323599.20277.help-gnu-emacs@gnu.org>
2005-12-11 21:08 ` roodwriter
2005-12-12 6:25 ` Xiangqian Liu
2005-12-12 6:47 ` Drew Adams
2005-12-12 12:06 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kuvlnd.46.ln@acm.acm \
--to=acm@muc.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).