Anonymous avatar Anonymous committed 50489c4

Add emacs-elpa, Langs

Comments (0)

Files changed (1)

       (quote (("default"
                ("Org" ;; all org-related buffers
                 (mode . org-mode))
+               ("emacs-elpa"
+                (or (predicate
+                     .
+                     (let ((bfn (buffer-file-name (current-buffer))))
+                       (when bfn
+                         (and (string-match-p "\\.emacs\\.d/elpa" bfn)
+                              (eq major-mode 'emacs-lisp-mode)))))))
                ("emacs-config"
                 (or (predicate
                      .
                     (mode . css-mode)
                     (mode . php-mode)
                     (mode . js-mode)))
+               ("Dired"
+                (mode . dired-mode))
                ("Langs"
                 (or (predicate
                      .
                      (let ((bfn (buffer-file-name (current-buffer))))
                        (when bfn
                          (string-match-p "d:/languages" bfn))))))
-              ("Dired"
-               (mode . dired-mode))
-              ("Images"
-               (or (mode . image-dired-display-image-mode)
-                   (mode . image-dired-thumbnail-mode)
-                   (mode . image-mode)))
-              ("Tramp"
-               (or (name . "tramp")))
-              ("Programming" ;; prog stuff not already in MyProjectX
-               (or
-                (mode . c-mode)
-                (mode . perl-mode)
-                (mode . python-mode)
-                (mode . cc-mode)
-                ;; etc
-                ))
-              ("IRC"
-               (or (mode . erc-mode)))
-              ))))
+               ("Images"
+                (or (mode . image-dired-display-image-mode)
+                    (mode . image-dired-thumbnail-mode)
+                    (mode . image-mode)))
+               ("Tramp"
+                (or (name . "tramp")))
+               ("Programming" ;; prog stuff not already in MyProjectX
+                (or
+                 (mode . c-mode)
+                 (mode . perl-mode)
+                 (mode . python-mode)
+                 (mode . cc-mode)
+                 ;; etc
+                 ))
+               ("IRC"
+                (or (mode . erc-mode)))
+               ))))
 
 ;; (define-ibuffer-filter in-directory
 ;;   "Toggle current view to buffers whose default-directory is in QUALIFIER."
   "Startup function."
   (ibuffer-switch-to-saved-filter-groups "default")
   (add-to-list 'ibuffer-hidden-filter-groups "Tramp")
+  (add-to-list 'ibuffer-hidden-filter-groups "emacs-elpa")
   (visual-line-mode -1)
   (toggle-truncate-lines 1))
 (add-hook 'ibuffer-mode-hook 'customize-ibuffer-mode)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.