all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: buffer management in emacs
Date: Tue, 4 May 2010 06:55:19 -0700 (PDT)	[thread overview]
Message-ID: <276ba00e-2f6e-4e66-ac82-f1b69f0a0587@u20g2000pru.googlegroups.com> (raw)
In-Reply-To: 87d3xwsbns.fsf@slack64.serverdot.org

On Apr 18, 2:17 pm, xtd8...@gmail.com (.Martin.) wrote:
> Hi all,
> 1. Is there any way of temporarily bookimaring buffers so that I can switch
> between them more efficiently? Gnus itself has a good few buffers (of
> which I only use the main one where groups are listed), then
> when I open a few messages the buffers usually stay. I usually switch
> between buffers by C-x and right/left arrows. I bet there's a much
> better way of doing it.
> I know of C-x b, but then I have to press TAB to list buffers and do
> autocompletion. How do you switch between buffers?

there are several buffer switching packages, many comes with emacs 22
and 23.

Personally, i use ibuffer. Just type Alt+x ibuffer. You should also
replace the default keybinding.

there's also iswitch, and ido, among others.

they all help you manage buffers.

The emacs buffer management problem really has to do with emacs's lack
of closing file command. There's kill-file, but it requires you to
confirm, even a saved file. Plus, there's no keyboard shortcut for it.
So, this tends to get people to leave behind lots of opened files.

Usually hundreds of buffers that are accumulated in weeks or months
are reported by long time emacs users.

for me, i prefer to close a file or buffer whenever i'm done with it.
So, my open buffers represent things i am working on, or need to work
on. Typically they are no more than 10 open files. I've also
customized my emacs extensively, so that i have single shortcut to
close buffer (or create new one), and without asking me if the buffer
is already saved, and can open accidentally closed buffer (similar to
accidentally closed tabs in browsers). Also, for switching to next/
previous buffer, i have easy shortcuts the same as switching tabs in
browsers.

If you are interested in this UI, you can try it or get the code at
ergoemacs.org

some of these ideas are written here:

  http://xahlee.org/emacs/modernization_scratch_buffer.html
  http://xahlee.org/emacs/effective_emacs.html

  Xah
∑ http://xahlee.org/

  parent reply	other threads:[~2010-05-04 13:55 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-18 21:17 buffer management in emacs .Martin.
2010-04-18 22:26 ` Claudius Hubig
2010-04-18 22:51   ` .Martin.
2010-04-19 13:35     ` Stefan Monnier
2010-04-18 22:41 ` Chris F.A. Johnson
2010-04-19  2:08   ` despen
2010-05-07  4:00     ` Kevin Rodgers
     [not found]     ` <mailman.35.1273204857.9285.help-gnu-emacs@gnu.org>
2010-05-07 13:58       ` despen
2010-05-08  2:35         ` Kevin Rodgers
     [not found]         ` <mailman.1.1273286161.603.help-gnu-emacs@gnu.org>
2010-05-08  3:00           ` despen
2010-05-08 12:29             ` Sean Sieger
     [not found]             ` <mailman.2.1273321768.12744.help-gnu-emacs@gnu.org>
2010-05-08 14:06               ` despen
2010-05-08 15:23                 ` Sean Sieger
2010-05-08 19:17             ` Stefan Monnier
2010-05-08 21:30               ` despen
2010-05-04  8:37 ` Stefan Kamphausen
2010-05-04 13:55 ` Xah Lee [this message]
2010-05-05 13:51   ` Tyler Smith
2010-05-05 17:41   ` B. T. Raven
     [not found]   ` <mailman.89.1273067533.29092.help-gnu-emacs@gnu.org>
2010-05-06  9:52     ` Xah Lee
2010-05-06  9:55       ` Xah Lee
2010-05-06 15:20       ` Lennart Borgman
2010-05-06 15:34       ` Tyler Smith
2010-05-04 22:11 ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=276ba00e-2f6e-4e66-ac82-f1b69f0a0587@u20g2000pru.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.