mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
feat(format): add :lang rst formatter
This commit is contained in:
@@ -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.")))
|
Reference in New Issue
Block a user