Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: How do I stop "*Buffer List*" from showing when opening 3+ files

Tags:

emacs

When I open 3+ files in emacs, I get a split window with one of my files in the upper buffer and Buffer List in the lower buffer.

How can I get emacs to NOT put Buffer List there, but instead show another one of my files.

thanks. -John

like image 650
John Avatar asked Nov 16 '10 17:11

John


People also ask

How do I close all buffers in Emacs?

M-x kill-matching-buffers. Offer to kill all buffers matching a regular expression. C-x k ( kill-buffer ) kills one buffer, whose name you specify in the minibuffer. The default, used if you type just RET in the minibuffer, is to kill the current buffer.

How many buffer can be open in Emacs at a time?

The number of buffers you can have really has no limit. Most of the time, only one or two buffers are displayed, but even if you can't see them, all the buffers you create in an Emacs session are still active. You can think of them as a stack of pages, with the one being displayed as the top page.

Can you only have one buffer open in Emacs at a time?

Each Emacs window displays one Emacs buffer at any time. A single buffer may appear in more than one window; if it does, any changes in its text are displayed in all the windows where it appears.

How do I open multiple Emacs?

Much better to use the multiple buffer feature of emacs. If you are editing the first file and want to start editing the second file, simply use the hot key C-x C-f or the menu selection File->Open File to start the second file. The second file is loaded into its own buffer.


1 Answers

Try this:

(setq inhibit-startup-buffer-menu t)

Documentation can be found here.

Note: This option was introduced in Emacs 22.

For Emacs 21 and before, you could add the following workaround to your .emacs which will force Emacs to only have one window visible upon startup:

(add-hook 'after-init-hook 'delayed-delete-other-windows)
(defun delayed-delete-other-windows ()
  "need the call to happen after startup runs, so wait for idle"
  (run-with-idle-timer 0 nil 'delete-other-windows))
like image 62
Trey Jackson Avatar answered Oct 03 '22 01:10

Trey Jackson