diff options
author | JSDurand <mmemmew@gmail.com> | 2023-01-03 15:17:02 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2023-01-03 15:17:02 +0800 |
commit | 7d0ba00c8897a98b2b27f02f026e1dcc0a2e6de9 (patch) | |
tree | 9e135baff508ca3b7e07decf72362f89af794fe5 | |
parent | f3c383b7906235e3b50dbc196194f311bf949174 (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.el | 2 | ||||
-rw-r--r-- | view-conf.el | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -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 |