emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/doc-toc 4c49867186 27/84: Fix TOC-tabular mode name and


From: ELPA Syncer
Subject: [elpa] externals/doc-toc 4c49867186 27/84: Fix TOC-tabular mode name and add page-scroll keybinding
Date: Mon, 26 Sep 2022 13:58:36 -0400 (EDT)

branch: externals/doc-toc
commit 4c4986718659db6bfa6267be55c632ae8bffc823
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>

    Fix TOC-tabular mode name and add page-scroll keybinding
---
 toc-mode.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/toc-mode.el b/toc-mode.el
index 852f5f6f1a..3360fe2f4b 100644
--- a/toc-mode.el
+++ b/toc-mode.el
@@ -365,10 +365,13 @@ Use with the universal argument (C-u) omits cleanup to 
get the unprocessed text.
     (define-key map [C-down] 'toc-scroll-pdf-other-window-down)
     (define-key map [C-up] 'toc-scroll-pdf-other-window-up)
     (define-key map "\C-c\C-c" 'toc-tablist-to-toc-source)
+    (define-key map "\C-c\C-c" 'toc-tablist-to-toc-source)
+    (define-key map "\S-j" 'evil-scroll-page-down)
+    (define-key map "\S-k" 'evil-scroll-page-up)
     map))
 
 (define-derived-mode toc-tabular-mode
-  tabulated-list-mode "TOC"
+  tabulated-list-mode "TOC-tabular"
   "Major mode for Table Of Contents."
   (setq-local tabulated-list-format [("level" 10 nil) ("name" 80 nil) ("page" 
1 nil)])
   (tabulated-list-init-header))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]