summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-01-03 15:17:02 +0800
committerJSDurand <mmemmew@gmail.com>2023-01-03 15:17:02 +0800
commit7d0ba00c8897a98b2b27f02f026e1dcc0a2e6de9 (patch)
tree9e135baff508ca3b7e07decf72362f89af794fe5
parentf3c383b7906235e3b50dbc196194f311bf949174 (diff)
ibuffer and view: bind imenu and add filters
* ibuffer.el (durand-bongo-set-filter): Add filters for Eshell and Org buffers. * view-conf.el (durand-view-map): Bind imenu to "i" in the view-map.
-rw-r--r--ibuffer.el2
-rw-r--r--view-conf.el1
2 files changed, 3 insertions, 0 deletions
diff --git a/ibuffer.el b/ibuffer.el
index c23dcb2..40ef737 100644
--- a/ibuffer.el
+++ b/ibuffer.el
@@ -442,6 +442,8 @@ value of `default-directory' in that buffer."
(cons "ELisp" '((mode . emacs-lisp-mode)))
(cons "EWW" '((mode . eww-mode)))
(cons "PDF" '((mode . pdf-view-mode)))
+ (cons "Eshell" '((mode . eshell-mode)))
+ (cons "Org" '((mode . org-mode)))
(cons "Roman" '((mode . novel-read-mode)))))
(let ((ibuf (get-buffer "*Ibuffer*")))
(when ibuf
diff --git a/view-conf.el b/view-conf.el
index b9d29be..215644b 100644
--- a/view-conf.el
+++ b/view-conf.el
@@ -110,6 +110,7 @@ If ARG is '(16), view the battery information."
(define-key map (vector ?n) #'novel)
(define-key map (vector ?O) #'durand-maybe-enable-outline)
(define-key map (vector ?w) #'durand-eww-map)
+ (define-key map (vector ?i) #'imenu)
map)
"The keymap that is related to my custom functions about viewing.")
;;; Hyper key