https://github.com/tkf/rstcheck
reStructuredText checker
https://github.com/tkf/rstcheck
Last synced: 11 months ago
JSON representation
reStructuredText checker
- Host: GitHub
- URL: https://github.com/tkf/rstcheck
- Owner: tkf
- Created: 2012-02-11T22:37:06.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-02-17T02:24:55.000Z (almost 13 years ago)
- Last Synced: 2024-12-31T09:25:19.320Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
==========================
reStructuredText checker
==========================
Usage
-----
::
rstcheck.py path/to/file.rst
Using rstcheck with flymake
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Put the following in your Emacs setting and replace
`"path/to/rstcheck.py"` with the real path::
(defun flymake-rst-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "path/to/rstcheck.py" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.rst\\'" flymake-rst-init))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.rest\\'" flymake-rst-init))