emacs list-buffers behavior
In GNU emacs, every time I hit Ctrl-x Ctrl-b to see all of my buffers, the window is split to show the buffer list, or if I have my window already split in 2 (for instance, I will have a shell running in the lower window), the buffer list appears in the other window.
My desired behavior is for the buffer list to appear in my active window so that I can select the buffer I want and continue to working in the same window, rather than having to Ctrl-x Ctrl-o to the other buffer, selecting the buffer (with enter) and editing that buffer in the other window... I've googled for it but it doesn't seem to be a common desire? I wonder if anyone has an elispy (or other) solution?
You might want to rebind C-x C-b to invoke buffer-menu
rather than list-buffers
:
(global-set-key "\C-x\C-b" 'buffer-menu)
Just customize the variable same-window-regexps
. display-buffer
will display any buffer whose name matches a regexp there in the currently-selected window.
(You will want to add "[*]Buffer List
".)
not exactly a solution, but ido-mode
provides a different and powerful way to interact with buffers. C-x b
will then show a list of all the open buffers, and the one you select will open in the current window.