From 7d0ba00c8897a98b2b27f02f026e1dcc0a2e6de9 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 3 Jan 2023 15:17:02 +0800 Subject: 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. --- ibuffer.el | 2 ++ view-conf.el | 1 + 2 files changed, 3 insertions(+) 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 -- cgit v1.2.3-18-g5258