I use buffer-menu extensively to switch between buffers. I want to list the buffers which are files or dired. How can I do that?
I use buffer-menu extensively to switch between buffers. I want to list the buffers
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use ibuffer
There you can define your buffer groups. You can mark buffers, use filtering and sorting, do search/replace in marked buffers and other useful stuff.
For your case just put into the hook
(ibuffer-filter-by-filename ".")Here is an example from my .emacs .
EDIT. If you want to filter out temporary buffers (which name begins with *) you can set the following filter (regex)
It says that the buffer name should start with any character except *.