File: checkdoc-batch.el

package info (click to toggle)
markdown-mode 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,112 kB
  • sloc: lisp: 13,840; makefile: 72; sh: 16
file content (10 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
(require 'checkdoc)

(defun markdown-test--checkdoc-file (file)
  "Check FILE for document, comment, error style, and rogue spaces.
Taken from Emacs 25 source."
  (with-current-buffer (find-file-noselect file)
    (let ((checkdoc-diagnostic-buffer "*warn*"))
      (checkdoc-current-buffer t))))

(markdown-test--checkdoc-file "../markdown-mode.el")