Variable: rst-mode-map
rst-mode-map is a variable defined in rst.el.gz.
Value
Large value
C-= rst-adjust
C-M-a rst-backward-section
C-M-e rst-forward-section
C-M-h rst-mark-section
C-c 1 rst-deprecated-compile
C-c 2 rst-deprecated-compile-alt-toolset
C-c 3 rst-deprecated-compile-pseudo-region
C-c 4 rst-deprecated-compile-pdf-preview
C-c 5 rst-deprecated-compile-slides-preview
C-c C-= rst-adjust
C-c C-a <t> rst-deprecated-adjust
C-c C-a C-a rst-adjust
C-c C-a C-d rst-display-hdr-hierarchy
C-c C-a C-h describe-prefix-bindings
C-c C-a C-s rst-straighten-sections
C-c C-b rst-deprecated-bullet-list-region
C-c C-c C-a rst-compile-alt-toolset
C-c C-c C-c rst-compile
C-c C-c C-h describe-prefix-bindings
C-c C-c C-p rst-compile-pdf-preview
C-c C-c C-s rst-compile-slides-preview
C-c C-c C-x rst-compile-pseudo-region
C-c C-d rst-deprecated-line-block-region
C-c C-e rst-deprecated-enumerate-region
C-c C-f rst-deprecated-toc-follow-link
C-c C-h describe-prefix-bindings
C-c C-l <t> rst-deprecated-shift-region
C-c C-l C-b rst-bullet-list-region
C-c C-l C-c rst-convert-bullets-to-enumeration
C-c C-l C-e rst-enumerate-region
C-c C-l C-h describe-prefix-bindings
C-c C-l C-s rst-straighten-bullets-region
C-c C-l TAB rst-insert-list
C-c C-n rst-deprecated-backward-section
C-c C-p rst-deprecated-forward-section
C-c C-r <t> rst-deprecated-shift-region
C-c C-r <tab> rst-shift-region
C-c C-r C-h describe-prefix-bindings
C-c C-r C-l rst-line-block-region
C-c C-s rst-deprecated-straighten-sections
C-c C-t C-h describe-prefix-bindings
C-c C-t C-j rst-toc-follow-link
C-c C-t C-t rst-toc
C-c C-t C-u rst-toc-update
C-c C-t TAB rst-toc-insert
C-c C-u rst-deprecated-toc-update
C-c C-v rst-deprecated-convert-bullets-to-enumeration
C-c C-w rst-deprecated-straighten-bullets-region
C-c RET rst-deprecated-mark-section
C-c TAB rst-deprecated-toc-insert
Documentation
Keymap for reStructuredText mode commands.
This inherits from Text mode.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
;; Key bindings.
(defvar rst-mode-map
(let ((map (make-sparse-keymap)))
;; \C-c is the general keymap.
(rst-define-key map [?\C-c ?\C-h] #'describe-prefix-bindings)
;;
;; Section Adornments
;;
;; The adjustment function that adorns or rotates a section title.
(rst-define-key map [?\C-c ?\C-=] #'rst-adjust [?\C-c ?\C-a t])
(rst-define-key map [?\C-=] #'rst-adjust) ; Does not work on macOS and
; on consoles.
;; \C-c \C-a is the keymap for adornments.
(rst-define-key map [?\C-c ?\C-a ?\C-h] #'describe-prefix-bindings)
;; Another binding which works with all types of input.
(rst-define-key map [?\C-c ?\C-a ?\C-a] #'rst-adjust)
;; Display the hierarchy of adornments implied by the current document
;; contents.
(rst-define-key map [?\C-c ?\C-a ?\C-d] #'rst-display-hdr-hierarchy)
;; Homogenize the adornments in the document.
(rst-define-key map [?\C-c ?\C-a ?\C-s] #'rst-straighten-sections
[?\C-c ?\C-s])
;;
;; Section Movement and Selection
;;
;; Mark the subsection where the cursor is.
(rst-define-key map [?\C-\M-h] #'rst-mark-section
;; Same as mark-defun sgml-mark-current-element.
[?\C-c ?\C-m])
;; Move backward/forward between section titles.
;; FIXME: Also bind similar to outline mode.
(rst-define-key map [?\C-\M-a] #'rst-backward-section
;; Same as beginning-of-defun.
[?\C-c ?\C-n])
(rst-define-key map [?\C-\M-e] #'rst-forward-section
;; Same as end-of-defun.
[?\C-c ?\C-p])
;;
;; Operating on regions
;;
;; \C-c \C-r is the keymap for regions.
(rst-define-key map [?\C-c ?\C-r ?\C-h] #'describe-prefix-bindings)
;; Makes region a line-block.
(rst-define-key map [?\C-c ?\C-r ?\C-l] #'rst-line-block-region
[?\C-c ?\C-d])
;; Shift region left or right according to tabs.
(rst-define-key map [?\C-c ?\C-r tab] #'rst-shift-region
[?\C-c ?\C-r t] [?\C-c ?\C-l t])
;;
;; Operating on lists
;;
;; \C-c \C-l is the keymap for lists.
(rst-define-key map [?\C-c ?\C-l ?\C-h] #'describe-prefix-bindings)
;; Makes paragraphs in region as a bullet list.
(rst-define-key map [?\C-c ?\C-l ?\C-b] #'rst-bullet-list-region
[?\C-c ?\C-b])
;; Makes paragraphs in region an enumeration.
(rst-define-key map [?\C-c ?\C-l ?\C-e] #'rst-enumerate-region
[?\C-c ?\C-e])
;; Converts bullets to an enumeration.
(rst-define-key map [?\C-c ?\C-l ?\C-c] #'rst-convert-bullets-to-enumeration
[?\C-c ?\C-v])
;; Make sure that all the bullets in the region are consistent.
(rst-define-key map [?\C-c ?\C-l ?\C-s] #'rst-straighten-bullets-region
[?\C-c ?\C-w])
;; Insert a list item.
(rst-define-key map [?\C-c ?\C-l ?\C-i] #'rst-insert-list)
;;
;; Table-of-Contents Features
;;
;; \C-c \C-t is the keymap for table of contents.
(rst-define-key map [?\C-c ?\C-t ?\C-h] #'describe-prefix-bindings)
;; Enter a TOC buffer to view and move to a specific section.
(rst-define-key map [?\C-c ?\C-t ?\C-t] #'rst-toc)
;; Insert a TOC here.
(rst-define-key map [?\C-c ?\C-t ?\C-i] #'rst-toc-insert
[?\C-c ?\C-i])
;; Update the document's TOC (without changing the cursor position).
(rst-define-key map [?\C-c ?\C-t ?\C-u] #'rst-toc-update
[?\C-c ?\C-u])
;; Go to the section under the cursor (cursor must be in internal TOC).
(rst-define-key map [?\C-c ?\C-t ?\C-j] #'rst-toc-follow-link
[?\C-c ?\C-f])
;;
;; Converting Documents from Emacs
;;
;; \C-c \C-c is the keymap for compilation.
(rst-define-key map [?\C-c ?\C-c ?\C-h] #'describe-prefix-bindings)
;; Run one of two pre-configured toolset commands on the document.
(rst-define-key map [?\C-c ?\C-c ?\C-c] #'rst-compile
[?\C-c ?1])
(rst-define-key map [?\C-c ?\C-c ?\C-a] #'rst-compile-alt-toolset
[?\C-c ?2])
;; Convert the active region to pseudo-xml using the docutils tools.
(rst-define-key map [?\C-c ?\C-c ?\C-x] #'rst-compile-pseudo-region
[?\C-c ?3])
;; Convert the current document to PDF and launch a viewer on the results.
(rst-define-key map [?\C-c ?\C-c ?\C-p] #'rst-compile-pdf-preview
[?\C-c ?4])
;; Convert the current document to S5 slides and view in a web browser.
(rst-define-key map [?\C-c ?\C-c ?\C-s] #'rst-compile-slides-preview
[?\C-c ?5])
map)
"Keymap for reStructuredText mode commands.
This inherits from Text mode.")