Minor fixes on ibuffer (emacs)
Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
This commit is contained in:
parent
f46277891f
commit
7fb2742958
16
.emacs
16
.emacs
|
@ -209,10 +209,18 @@
|
|||
|
||||
;; Enable ibuffer-vc extension
|
||||
;; TODO: enable along side my pre existing filter groups using (ibuffer-vc-generate-filter-groups-by-vc-root).
|
||||
;; This cannot be done in the ibuffer-saved-filters because ibuffer-vc-generate... returns a list of cons
|
||||
;; cells but we need this to be dynamic (use a hook like ibuffer-load-hook)
|
||||
;; Also add a key binding to switch to the vc-ibuffer (note: to switch back to the default ibuffer list use / R in ibuffer-mode
|
||||
(require 'ibuffer-vc)
|
||||
|
||||
;; Add vc-status line to ibuffer
|
||||
(setq ibuffer-formats '((mark modified read-only vc-status-mini " "
|
||||
(name 18 18 :left :elide) " "
|
||||
(size 9 -1 :right) " "
|
||||
(mode 16 16 :left :elide) " "
|
||||
(vc-status 16 16 :left) " "
|
||||
filename-and-process)
|
||||
(mark " " (name 16 -1) " " filename)))
|
||||
|
||||
;; Filter ibuffers (similar to gnus)
|
||||
(setq ibuffer-saved-filter-groups
|
||||
'(("default"
|
||||
|
@ -284,7 +292,9 @@
|
|||
(mode . magit-commit-mode)
|
||||
(mode . magit-log-mode)
|
||||
(mode . magit-wazzup-mode)
|
||||
(mode . magit-process-mode)))
|
||||
(mode . magit-process-mode)
|
||||
(mode . magit-status-mode)
|
||||
(mode . magit-branch-manager-mode)))
|
||||
("bookmarks" (or
|
||||
(name . "^\\*Bookmark List\\*$")))
|
||||
("help" (or
|
||||
|
|
Reference in New Issue