all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How buffer list be current buffer and not be in a split window?
@ 2010-07-24 14:37 Chris Seberino
  2010-07-25  8:17 ` TheFlyingDutchman
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Seberino @ 2010-07-24 14:37 UTC (permalink / raw)
  To: help-gnu-emacs

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


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

* Re: How buffer list be current buffer and not be in a split window?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: TheFlyingDutchman @ 2010-07-25  8:17 UTC (permalink / raw)
  To: help-gnu-emacs

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)


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

end of thread, other threads:[~2010-07-25  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.