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:
parent
9cb535043c
commit
9b831d8ae7
2 changed files with 17 additions and 0 deletions
16
modules/lang/rst/config.el
Normal file
16
modules/lang/rst/config.el
Normal 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))))
|
Loading…
Add table
Add a link
Reference in a new issue