I am configuring a CI/CD pipeline to process org-mode files into documentation, source code, and other file formats.
I would like to add a call to
org-lint to do basic syntax checking against org files as part pipeline.
Unfortunately I haven't be able get the command line to work.
I've tried the following commands:
emacs --batch -l org -f org-lint org-lint-notes.org emacs --batch -l org --eval '(org-lint)' org-lint-notes.org
But both return the error below:
Symbol’s function definition is void: org-lint
I'm not sure what I'm doing wrong.
Thanks for your help!
This code was tested using:
emacs version: GNU Emacs 25.2.1 (x86_64-unknown-cygwin, GTK+ Version 3.22.10)
org-mode version: 9.1.2
package-install? In that case you need to add
-f package-initializeto use orgmode 9.1.2 with
--batch. Further note that you should load the buffer you want to lint before you call
-f org-lint. You can test which org version you are using with
emacs --batch -f org-versionon the command line.
org-lintas well as
publish.eldoes. I’ll do some research about loading buffer first and/or passing buffer name to
org-lint. Thanks again!