From: TheFlyingDutchman <zzbbaadd@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How buffer list be current buffer and not be in a split window?
Date: Sun, 25 Jul 2010 01:17:07 -0700 (PDT) [thread overview]
Message-ID: <c3208678-477d-4448-9326-18cfd19ad839@z34g2000pro.googlegroups.com> (raw)
In-Reply-To: 6e8aadeb-ab3d-4dfc-8131-253d51009ff4@y11g2000yqm.googlegroups.com
On Jul 24, 7:37 am, Chris Seberino <cseber...@gmail.com> wrote:
> When I open multiple buffers, the buffer list is in a split window
> below another buffer.
>
> How make buffer list be the current buffer upon startup and avoid
> split windows?
>
> cs
I think this works and is what you are looking for.
If you put this in your .emacs initialization file, the buffer list
will always show up in the currently active/selected window.
(defun ListBuffers (&optional files-only)
"Display a list of names of existing buffers.
The list is displayed in the active window in a buffer named `*Buffer
List*'.
Note that buffers with names starting with spaces are omitted.
Non-null optional arg FILES-ONLY means mention only file buffers.
For more information, see the function `buffer-menu'."
(interactive "P")
(window--display-buffer-2 (list-buffers-noselect files-only)
(selected-window))
)
(global-set-key (kbd "C-x C-b") 'ListBuffers)
prev parent reply other threads:[~2010-07-25 8:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-24 14:37 How buffer list be current buffer and not be in a split window? Chris Seberino
2010-07-25 8:17 ` TheFlyingDutchman [this message]
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=c3208678-477d-4448-9326-18cfd19ad839@z34g2000pro.googlegroups.com \
--to=zzbbaadd@aol.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.