spot/doc/org/.dir-locals.el
Alexandre Duret-Lutz 69dcff5ab0 org: Make sure ../../src/bin is searched first.
We used to set PATH in emacs, but because babel executes "sh" via
shell-command, the configuration of the main shell may supersedes ours.

* doc/org/ltl2tgba.org, doc/org/ltl2tgta.org, doc/org/ltlcross.org,
doc/org/ltlfilt.org, doc/org/randltl.org, doc/org/tools.org,
doc/org/genltl.org: Move all local-file variable to...
* doc/org/.dir-locals.el: ... here.  And also set the PATH
in org-babel-sh-command.
* doc/org/init.el.in: Set the PATH in org-babel-sh-command.
2013-04-11 19:02:45 +02:00

32 lines
1.2 KiB
EmacsLisp

((nil . ((whitespace-action auto-cleanup)
(whitespace-style face empty trailing lines-tail)
(require-final-newline . t)
(mode . whitespace)))
(org-mode . ((whitespace-style face empty trailing)
(eval .
(progn
(setq org-babel-sh-command (concat "PATH=../../src/bin"
path-separator
"$PATH sh"))
(org-babel-do-load-languages 'org-babel-load-languages
'((sh . t)
(python . t)
(dot . t)))))
(org-confirm-babel-evaluate . nil)
(org-babel-python-command . "/usr/bin/python3")
(org-publish-project-alist
. (("spot-html"
:base-directory "."
:base-extension "org"
:publishing-directory "../userdoc/"
:recursive t
:publishing-function org-publish-org-to-html
:style "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://spot.lip6.fr/css/spot-zenburn.css\" />"
:auto-preamble t)
("spot-static"
:base-directory "."
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf"
:publishing-directory "../userdoc/"
:recursive t
:publishing-function org-publish-attachment)
("spot-all" :components ("spot-html" "spot-static")))))))