init.el.in 2.8 KB
Newer Older
1
2
3
4
5
(setq load-path (append '("@abs_top_srcdir@/elisp/" ; for hoa-mode.el
			  ;; htmlize is not always in the load-path.
			  ;; On Debian it can be found here.
			  "/usr/share/emacs/site-lisp/emacs-goodies-el")
			load-path))
6
7
(or (require 'org-publish nil t)	; Org 7
    (require 'ox-publish))		; Org 8
8
(require 'org-install)
9
(require 'hoa-mode)
10
11
12

(print (concat "Org " (org-version)))
(setq org-export-htmlize-output-type 'css)
13
(setq org-html-htmlize-output-type 'css)
14
15
16
; the .org-timestamp directory does not always exist, is not always
; created by org, and that causes issues on our buildfarm.
(setq org-publish-use-timestamps-flag nil)
17
18
19
;; The default value of writing to ~/.org-timestamps causes race
;; conditions when doing concurrent builds.
(setq org-publish-timestamp-directory "@abs_top_builddir@/.org-timestamps/")
20
21
22
23
24

(org-babel-do-load-languages
 'org-babel-load-languages
 '((sh . t)
   (dot . t)
25
26
   (python . t)
   (C . t)))
27
28
(setq org-confirm-babel-evaluate nil)

29
(setq org-babel-python-command "@PYTHON@")
30
(setq org-babel-C++-compiler "./g++wrap")
31
(setq shell-file-name "@SHELL@")
32

33
(setenv "PATH"
34
	(concat "@abs_top_builddir@/spot/bin" path-separator (getenv "PATH")))
35
36
37
38
(setenv "PYTHONPATH"
	(concat "@abs_top_builddir@/wrap/python/.libs:@abs_top_builddir@/wrap/python:@abs_top_srcdir@/wrap/python:"
		(getenv "PYTHONPATH")))
(setenv "DYLD_LIBRARY_PATH"
39
	(concat "@abs_top_builddir@/wrap/python/.libs:@abs_top_builddir@/spot/.libs:@abs_top_builddir@/buddy/spot/.libs:"
40
		(getenv "DYLD_LIBRARY_PATH")))
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
41
(setenv "SPOT_DOTDEFAULT" "Brf(Lato)")
42
43
(setenv "SPOT_DOTEXTRA"
 "node[style=filled, fillcolor=\"#ffffa0\"] edge[arrowhead=vee, arrowsize=.7]")
44

45
46
47
48
49
(setq org-export-html-home/up-format
"<div id=\"org-div-home-and-up\" style=\"text-align:center;white-space:nowrap;\">
 <a accesskey=\"h\" href=\"%s\">UP</a> | <a accesskey=\"H\" href=\"%s\">HOME</a>
</div>")

50
(setq org-publish-project-alist
51
      `(("spot-html"
52
53
54
55
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "org"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
56
57
58
	:publishing-function
	,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
	   'org-html-publish-to-html)                              ; Org 8
59
	; Org 8
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
60
	:html-head "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
61
	; Org 7
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
62
	:style "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
63
64
65
66
67
68
69
70
71
72
	:auto-preamble t)
       ("spot-static"
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
	:publishing-function org-publish-attachment)
       ("spot-all" :components ("spot-html" "spot-static"))))

(org-publish-all t)