help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cycling through favored buffers


From: Drew Adams
Subject: RE: Cycling through favored buffers
Date: Thu, 25 Apr 2013 14:32:16 -0700

> 1. How do I ignore "all directory type buffers" and limit the 
> switching to be between files only.

(cl-remove-if (lambda (buf)
                (with-current-buffer buf
                  (derived-mode-p 'dired-mode)))
              (buffer-list))
 
> 2. How do I create another list of buffers that only includes 
> directories "headers" and "source"

(cl-remove-if-not (lambda (buf)
                    (member (buffer-name buf) '("headers" "source"))
                  (buffer-list))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]