init.el.in 3.44 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)
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
9
(require 'org-version)
10
(require 'hoa-mode)
11
12
13

(print (concat "Org " (org-version)))
(setq org-export-htmlize-output-type 'css)
14
(setq org-html-htmlize-output-type 'css)
15
16
17
; 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)
18
19
20
;; 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/")
21
22
23

(org-babel-do-load-languages
 'org-babel-load-languages
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
24
 `((,(if (version< org-version "8.3") 'sh 'shell) . t)
25
   (dot . t)
26
   (python . t)
27
   (plantuml . t)
28
   (C . t)))
29
(setq org-confirm-babel-evaluate nil)
30
(setq org-plantuml-jar-path "./plantuml.jar")
31
(setq org-babel-python-command "@PYTHON@")
32
(setq org-babel-C++-compiler "./g++wrap")
33
(setq shell-file-name "@SHELL@")
34

35
36
37
38
39
40
(setq org-babel-default-header-args:plantuml
      '((:results . "file")
        (:exports . "results")
        ;; prevent the plantuml logo to annoying appear on top of
        ;; whatever you are doing when the project compiles in the
        ;; background.
41
        (:java . "-Djava.awt.headless=true")))
42

43
(setenv "PATH"
44
	(concat "@abs_top_builddir@/bin" path-separator (getenv "PATH")))
45
(setenv "PYTHONPATH"
46
47
48
49
50
	(concat "@abs_top_builddir@/python/.libs:"
		"@abs_top_builddir@/python:"
		"@abs_top_srcdir@/python:"
		"@abs_top_builddir@/python/spot/.libs:"
		"@abs_top_builddir@/python/spot:"
51
		"@abs_top_builddir@/spot/ltsmin/.libs"
52
		"@abs_top_srcdir@/python/spot:"
53
54
		(getenv "PYTHONPATH")))
(setenv "DYLD_LIBRARY_PATH"
55
	(concat "@abs_top_builddir@/python/.libs:@abs_top_builddir@/spot/.libs:@abs_top_builddir@/buddy/src/.libs:"
56
		(getenv "DYLD_LIBRARY_PATH")))
57
58
(setenv "SPOT_DOTDEFAULT" "Brf(Lato)C(#ffffa0)")
(setenv "SPOT_DOTEXTRA" "edge[arrowhead=vee, arrowsize=.7]")
59

60
61
62
63
64
(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>")

65
66
(setq org-export-html-postamble nil)

67
(setq org-publish-project-alist
68
      `(("spot-html"
69
70
71
72
	:base-directory "@abs_top_srcdir@/doc/org/"
	:base-extension "org"
	:publishing-directory "@abs_top_srcdir@/doc/userdoc/"
	:recursive t
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
73
74
75
	:exclude "setup.org"
	:auto-sitemap t
	:sitemap-title "Sitemap for Spot"
76
77
78
	:publishing-function
	,(if (require 'org-publish nil t) 'org-publish-org-to-html ; Org 7
	   'org-html-publish-to-html)                              ; Org 8
79
	; Org 8
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
80
	:html-head "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
81
	; Org 7
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
82
	:style "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"spot.css\" />"
83
84
85
86
87
88
89
90
91
92
	: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)