summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArif Er <arifer612@pm.me>2021-04-23 00:56:51 +0800
committerJames N <james@jojojames.com>2021-05-04 20:55:29 -0700
commit0b88a434c0d479e41054d105b45ecd146c9645d6 (patch)
treecb9ff9de0bd67676ea2ea75da91b1e93876011bc
parentdb89792629143f30235c3fe5cfae4ac6003ba548 (diff)
Added help prompt for reftex-toc (with comments)
-rw-r--r--modes/reftex/evil-collection-reftex.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/modes/reftex/evil-collection-reftex.el b/modes/reftex/evil-collection-reftex.el
index 787d461..cae79df 100644
--- a/modes/reftex/evil-collection-reftex.el
+++ b/modes/reftex/evil-collection-reftex.el
@@ -31,6 +31,7 @@
(require 'reftex-ref nil t)
(require 'reftex-ref nil t)
(require 'reftex-cite nil t)
+(require 'reftex-toc nil t)
(defconst evil-collection-reftex-maps '(reftex-select-shared-map
reftex-toc-mode-map))
@@ -70,6 +71,18 @@
o / O Create BibTeX file with all marked / unmarked entries.
X / X Put all (marked) entries into one/many \\cite commands.")
+(setq reftex-toc-help
+ " AVAILABLE KEYS IN TOC BUFFER
+ ============================
+j / k next-line / previous-line
+TAB Goto the location and keep the TOC window.
+RET Goto the location and hide the TOC window (also on mouse-2).
+q / ZZ Hide/Kill *toc* buffer, return to position of reftex-toc command.
+l Toggle display of [l]abels
+f Toggle follow mode
+r / gr Reparse the LaTeX document / Reparse entire LaTeX document.
+x Switch to TOC of external document (with LaTeX package `xr').")
+
;;;###autoload
(defun evil-collection-reftex-setup ()
"Set up `evil' bindings for `reftex'."
@@ -121,6 +134,8 @@
;; This one is more involved, in reftex-toc.el, line 282 it shows the prompt
;; string with the keybinds and I don't see any way of changing it to show evil-like binds.
+ ;;;; Since bindings that are specified in the prompt are the same except for SPC, wouldn't
+ ;;;; it be okay even if you left it be?
(evil-collection-define-key 'normal 'reftex-toc-mode-map
"j" 'reftex-toc-next
"k" 'reftex-toc-previous