Add rst module

Uses sphinx-mode and adds a few common bindings

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
This commit is contained in:
Rudi Grinberg 2019-11-06 16:57:35 +09:00
parent 9cb535043c
commit 9b831d8ae7
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,16 @@
(use-package! sphinx-mode
:init
(add-hook! 'rst-mode-hook #'sphinx-mode))
(use-package! rst
:config
(map! :localleader
:map rst-mode-map
(:prefix ("a" . "adjust")
("a" #'rst-adjust
"r" #'rst-adjust-region))
(:prefix ("t" . "table of contents")
("t" #'rst-toc
"i" #'rst-toc-insert
"u" #'rst-toc-update
"f" #'rst-toc-follow-link))))