diff options
-rw-r--r-- | ibuffer.el | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -257,6 +257,34 @@ derived modes of `ibuffer-mode'."))) (advice-add #'ibuffer-do-unprotect :before #'durand-ibuffer-restore-mark-before-advice) +;;;; A custom column + +;;;###autoload +(define-ibuffer-column protect + (:name "P" :inline t) + (cond + ((durand-member buffer durand-clear-passlist #'durand-born-equal) + "P") + (" "))) + +(setq ibuffer-formats + '((mark + modified + read-only + locked + protect + " " + (name 18 18 :left :elide) + " " + (size 9 -1 :right) + " " + (mode 16 16 :left :elide) + " " + filename-and-process) + (mark " " (name 16 -1) " " filename))) + +(ibuffer-recompile-formats) + ;;; key-bindings (define-key global-map (vector 24 2) #'ibuffer) |