Created
September 27, 2013 15:45
-
-
Save glucas/6730692 to your computer and use it in GitHub Desktop.
Elisp snippets for defining ibuffer filter groups for all known projectile projects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my/define-projectile-filter-groups () | |
(when (boundp 'projectile-known-projects) | |
(setq my/project-filter-groups | |
(--map (list | |
(concat "Project: " (file-name-nondirectory (directory-file-name it))) | |
`(filename . ,it)) | |
projectile-known-projects)))) | |
(setq ibuffer-saved-filter-groups | |
(list | |
(cons "default" | |
(append | |
(if (fboundp 'my/define-projectile-filter-groups) | |
(my/define-projectile-filter-groups)) | |
'(("Org" (or (mode . org-mode) | |
(mode . diary-mode) | |
(mode . org-agenda-mode))) | |
;; etc | |
))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
using it and loving it -- thanks!