Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Colors in emacs buffer list

Tags:

emacs

emacs24

Hi how can I colorize the emacs buffer menu, I'd like to have different colors for different type of files. That should make it easier to navigate a large list of buffers.

like image 915
jagguli Avatar asked May 13 '12 10:05

jagguli


People also ask

How do I change colors in Emacs?

To change the foreground or background color in Emacs through the windowing interface, you can use the menu commands Foreground Color->Other and Background Color->Other in the Edit->Text Properties menu.

How many buffers can you have in Emacs?

This is because Emacs tracks buffer positions using that data type. For typical 64-bit machines, this maximum buffer size is 2^{61} - 2 bytes, or about 2 EiB. For typical 32-bit machines, the maximum is usually 2^{29} - 2 bytes, or about 512 MiB.

What are buffers in Emacs?

Buffers in Emacs editing are objects that have distinct names and hold text that can be edited. Buffers appear to Lisp programs as a special data type. You can think of the contents of a buffer as a string that you can extend; insertions and deletions may occur in any part of the buffer.

How do I use buffers in Emacs?

If you want to create a buffer that contains a file, simply type C-x C-f to find the file. Emacs automatically creates a second buffer and moves you there. If you already have a copy of the file in a buffer, C-x C-f just moves you to the existing buffer.


3 Answers

Try M-xibuffer. It can serve as a replacement for list-buffers(C-x C-b), with a wealth of extra functionalities for filtering, sorting, etc. After invocation, use C-h m for more details.

like image 64
huaiyuan Avatar answered Oct 03 '22 17:10

huaiyuan


See EmacsWiki, it contains some links to enhanced buffer menus.

like image 20
choroba Avatar answered Oct 03 '22 17:10

choroba


Or you can find your best Keybind:

(global-set-key (kbd "C-x C-b") 'buffer-menu)

instead C-x C-b if you have another better choice.

like image 25
staticor Avatar answered Oct 03 '22 17:10

staticor