Function: reftex-toc-menu

reftex-toc-menu is an interactive and byte-compiled function defined in reftex-toc.el.gz.

Signature

(reftex-toc-menu ARG1)

Documentation

Menu for Table of Contents buffer

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/reftex-toc.el.gz
;;;

(defvar reftex-toc-mode-map
  (let ((map (make-sparse-keymap)))

    (define-key map [(mouse-2)] #'reftex-toc-mouse-goto-line-and-hide)
    (define-key map [follow-link] 'mouse-face)

    (define-key map [remap next-line] #'reftex-toc-next)
    (define-key map [remap previous-line] #'reftex-toc-previous)

    (define-key map "n" #'reftex-toc-next)
    (define-key map "p" #'reftex-toc-previous)
    (define-key map "?" #'reftex-toc-show-help)
    (define-key map " " #'reftex-toc-view-line)
    (define-key map "\C-m" #'reftex-toc-goto-line-and-hide)
    (define-key map "\C-i" #'reftex-toc-goto-line)
    (define-key map "\C-c>" #'reftex-toc-display-index)
    (define-key map "r" #'reftex-toc-rescan)
    (define-key map "R" #'reftex-toc-Rescan)
    (define-key map "q" #'reftex-toc-quit) ;
    (define-key map "k" #'reftex-toc-quit-and-kill)
    (define-key map "f" #'reftex-toc-toggle-follow) ;
    (define-key map "a" #'reftex-toggle-auto-toc-recenter)
    (define-key map "d" #'reftex-toc-toggle-dedicated-frame)
    (define-key map "F" #'reftex-toc-toggle-file-boundary)
    (define-key map "i" #'reftex-toc-toggle-index)
    (define-key map "l" #'reftex-toc-toggle-labels)
    (define-key map "t" #'reftex-toc-max-level)
    (define-key map "c" #'reftex-toc-toggle-context)
    ;; (define-key map "%" #'reftex-toc-toggle-commented)
    (define-key map "\M-%" #'reftex-toc-rename-label)
    (define-key map "x" #'reftex-toc-external)
    (define-key map "z" #'reftex-toc-jump)
    (define-key map "." #'reftex-toc-show-calling-point)
    (define-key map "\C-c\C-n" #'reftex-toc-next-heading)
    (define-key map "\C-c\C-p" #'reftex-toc-previous-heading)
    (define-key map ">" #'reftex-toc-demote)
    (define-key map "<" #'reftex-toc-promote)

    (easy-menu-define
      reftex-toc-menu map
      "Menu for Table of Contents buffer"
      '("TOC"
        ["Show Location" reftex-toc-view-line t]
        ["Go To Location" reftex-toc-goto-line t]
        ["Exit & Go To Location" reftex-toc-goto-line-and-hide t]
        ["Show Calling Point" reftex-toc-show-calling-point t]
        ["Quit" reftex-toc-quit t]
        "--"
        ("Edit"
         ["Promote" reftex-toc-promote t]
         ["Demote" reftex-toc-demote t]
         ["Rename Label" reftex-toc-rename-label t])
        "--"
        ["Index" reftex-toc-display-index t]
        ["External Document TOC  " reftex-toc-external t]
        "--"
        ("Update"
         ["Rebuilt *toc* Buffer" revert-buffer t]
         ["Rescan One File" reftex-toc-rescan reftex-enable-partial-scans]
         ["Rescan Entire Document" reftex-toc-Rescan t])
        ("Options"
         "TOC Items"
         ["File Boundaries" reftex-toc-toggle-file-boundary :style toggle
          :selected reftex-toc-include-file-boundaries]
         ["Labels" reftex-toc-toggle-labels :style toggle
          :selected reftex-toc-include-labels]
         ["Index Entries" reftex-toc-toggle-index :style toggle
          :selected reftex-toc-include-index-entries]
         ["Context" reftex-toc-toggle-context :style toggle
          :selected reftex-toc-include-context]
         "--"
         ["Follow Mode" reftex-toc-toggle-follow :style toggle
          :selected reftex-toc-follow-mode]
         ["Auto Recenter" reftex-toggle-auto-toc-recenter :style toggle
          :selected reftex-toc-auto-recenter-timer]
         ["Dedicated Frame" reftex-toc-toggle-dedicated-frame t])
        "--"
        ["Help" reftex-toc-show-help t]))

    map)
  "Keymap used for *toc* buffer.")