about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-windows.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-07-23 08:38:13 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-07-23 08:38:13 +0100
commit7299504d091e67633119263e3957b06e651f18ca (patch)
tree258acdf5de02ab9d19a3af93ab0ee136adf798fb /.emacs.d/lisp/init-windows.el
parent4731faf9e93d0b81d2192f1eee5e399404272154 (diff)
downloaddotfiles-7299504d091e67633119263e3957b06e651f18ca.tar.gz
Add causuel-ibuffer and some ibuffer bindings
Diffstat (limited to '.emacs.d/lisp/init-windows.el')
-rw-r--r--.emacs.d/lisp/init-windows.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-windows.el b/.emacs.d/lisp/init-windows.el
index 96c4109..2378e91 100644
--- a/.emacs.d/lisp/init-windows.el
+++ b/.emacs.d/lisp/init-windows.el
@@ -5,14 +5,29 @@
 (use-feature emacs
   :custom
   (switch-to-buffer-obey-display-actions t)
-  :bind
-  ("C-x C-M-b" . ibuffer)
   :config
   (defcustom large-frame-width-threshold 500
     "Minimum width (in chars) to consider the frame large."
     :group 'djm
     :type 'natnum))
 
+(use-feature ibuffer
+  :bind
+  ("C-x M-b" . ibuffer)
+  (:map ibuffer-mode-map
+        ("{" . ibuffer-backwards-next-marked)
+        ("}" . ibuffer-forward-next-marked)
+        ("[" . ibuffer-backward-filter-group)
+        ("]" . ibuffer-forward-filter-group)
+        ("$" . ibuffer-toggle-filter-group))
+  :hook (ibuffer-mode . ibuffer-auto-mode))
+
+(use-package casual-ibuffer
+  :bind (:map ibuffer-mode-map
+              ("C-o" . casual-ibuffer-tmenu)
+              ("F" . casual-ibuffer-filter-tmenu)
+              ("s" . casual-ibuffer-sortby-tmenu)))
+
 (use-feature winner
   :defer 5
   :config