2019-11-08 12:50:38 +09:00
|
|
|
;;; lang/rst/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
2019-11-06 16:57:35 +09:00
|
|
|
(use-package! sphinx-mode
|
2019-11-08 12:50:44 +09:00
|
|
|
:hook (rst-mode . sphinx-mode))
|
2019-11-06 16:57:35 +09:00
|
|
|
|
|
|
|
(use-package! rst
|
2019-11-08 12:56:14 +09:00
|
|
|
:defer t
|
2019-11-06 16:57:35 +09:00
|
|
|
:config
|
|
|
|
(map! :localleader
|
|
|
|
:map rst-mode-map
|
|
|
|
(:prefix ("a" . "adjust")
|
2019-11-08 12:51:57 +09:00
|
|
|
"a" #'rst-adjust
|
|
|
|
"r" #'rst-adjust-region)
|
2019-11-06 16:57:35 +09:00
|
|
|
(:prefix ("t" . "table of contents")
|
2019-11-10 14:14:23 +09:00
|
|
|
"t" #'rst-toc
|
|
|
|
"i" #'rst-toc-insert
|
|
|
|
"u" #'rst-toc-update
|
|
|
|
"f" #'rst-toc-follow-link)))
|