unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Killing Buffers
@ 2003-12-29 13:34 Edward Wijaya
  2003-12-29  6:27 ` Friedrich Dominicus
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Edward Wijaya @ 2003-12-29 13:34 UTC (permalink / raw)


Hi,

I am looking for a key that:
1. Kill all the existing buffer without having have to close Emacs
2. Kill all the existing buffer "except" the active one.

Does anybody know the shortcut key for that?

Thanks so much for your time.

RegardS
Edward
SINGAPORE

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Killing Buffers
@ 2004-01-02 22:28 Edward Wijaya
  0 siblings, 0 replies; 12+ messages in thread
From: Edward Wijaya @ 2004-01-02 22:28 UTC (permalink / raw)


Courtesy of Jose Ruiz.

------- Forwarded message -------
From: "Jose A. Ortega Ruiz" <jao@gnu.org>
To: Edward Wijaya <ewijaya@singnet.com.sg>
Subject: Re: Killing Buffers
Date: Fri, 02 Jan 2004 14:04:55 +0100

> Edward Wijaya <ewijaya@singnet.com.sg> writes:
>
>> Hi,
>>
>> I am looking for a key that:
>> 1. Kill all the existing buffer without having have to close Emacs
>
> hi, i've got this code in my .emacs:
>
> ;;; kill all buffers
> (defun my-blank-slate-emacs ()
>   "kill all buffers, leaving *scratch* only"
>   (interactive)
>   ;;close all frames but one, first
>   (mapcar (lambda (x) (delete-frame x))
>           (cdr (visible-frame-list)))
>   ;;then, kill all buffers
>   (mapcar (lambda (x) (kill-buffer x))
>           (buffer-list))
>   ;;make there be only one window holding buffer *scratch*
>   (delete-other-windows))
> (global-set-key "\C-x!" 'my-blank-slate-emacs)
>
> hth,
> jao

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-01-14 18:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-29 13:34 Killing Buffers Edward Wijaya
2003-12-29  6:27 ` Friedrich Dominicus
2003-12-29  6:55 ` Eli Zaretskii
2004-01-02 18:49 ` Bruce Ingalls
2004-01-02 20:54   ` Brian Palmer
2004-01-03  3:46     ` Andi Kleen
2004-01-05 19:27       ` Kevin Rodgers
2004-01-03 13:51     ` Bruce Ingalls
2004-01-12 15:02       ` Brian Palmer
2004-01-13 16:07         ` Kevin Rodgers
2004-01-14 18:21           ` Brian Palmer
  -- strict thread matches above, loose matches on Subject: below --
2004-01-02 22:28 Edward Wijaya

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).