unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Edward Wijaya <ewijaya@singnet.com.sg>
Subject: Re: Killing Buffers
Date: Fri, 02 Jan 2004 22:28:39 -0000	[thread overview]
Message-ID: <opr05511qmuj0cst@news.singnet.com.sg> (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

             reply	other threads:[~2004-01-02 22:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02 22:28 Edward Wijaya [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

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=opr05511qmuj0cst@news.singnet.com.sg \
    --to=ewijaya@singnet.com.sg \
    /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).