feat(format): add :lang rst formatter
This commit is contained in:
parent
7bdf8802a5
commit
caa6b2bb3b
2 changed files with 8 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
;;; lang/rst/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package! sphinx-mode
|
||||
:hook (rst-mode . sphinx-mode))
|
||||
:hook (rst-mode . sphinx-mode)
|
||||
:config
|
||||
(set-formatter! 'rstfmt '("rstfmt") :modes '(rst-mode)))
|
||||
|
||||
(use-package! rst
|
||||
:defer t
|
||||
|
|
5
modules/lang/rst/doctor.el
Normal file
5
modules/lang/rst/doctor.el
Normal file
|
@ -0,0 +1,5 @@
|
|||
;;; lang/rst/doctor.el -*- lexical-binding: t; -*-
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (executable-find "rstfmt")
|
||||
(warn! "Couldn't find rstfmt. Formatting will be disabled.")))
|
Loading…
Add table
Add a link
Reference in a new issue