core: fix doc-fmt tool

This commit is contained in:
syl20bnr 2016-03-31 23:58:11 -04:00
parent 7466fdc678
commit 749f0722b4
2 changed files with 3 additions and 4 deletions

View file

@ -23,8 +23,7 @@ find ./layers -name "*.org" -type f -exec gsed -i 's/:TOC_4_org:/:TOC_4_gh:/' {}
#apply toc-org to doc.
find ./doc -name "*.org" -type f -exec emacs -batch -l ./doc-fmt/toc-org-apply.el '{}' -f toc-apply \;
find ./doc -name "*.org" -type f -exec emacs -batch -l ./core/tools/doc-fmt/toc-org-apply.el '{}' -f toc-apply \;
#apply toc-org to layers.
find ./layers -name "*.org" -type f -exec emacs -batch -l ./doc-fmt/toc-org-apply.el '{}' -f toc-apply \;
find ./layers -name "*.org" -type f -exec emacs -batch -l ./core/tools/doc-fmt/toc-org-apply.el '{}' -f toc-apply \;

View file

@ -1,4 +1,4 @@
(load-file "./doc-fmt/toc-org.el")
(load-file "./core/tools/doc-fmt/toc-org.el")
(defun toc-apply ()
(toc-org-insert-toc)
(save-buffer 0))