Fix build failure for muse-ikiwiki.
[muse-el.git] / examples / ikiwiki / muse-init-simple.el
blobedca3f6afd459b9e9aa18b52d87e7fe9e319960a
1 ;;; muse-init-simple.el --- Use Emacs Muse to publish ikiwiki documents
3 ;; The code in this file may be used, distributed, and modified
4 ;; without restriction.
6 ;;; Setup
8 (add-to-list 'load-path (expand-file-name "~ikiwiki/elisp/muse/lisp"))
10 ;; Initialize
11 (require 'muse) ; load generic module
12 (require 'muse-html) ; load (X)HTML publishing style
13 (require 'muse-ikiwiki) ; load Ikiwiki integration
15 ;;; Settings
17 ;; Permitted modes for <src> to colorize
18 (setq muse-html-src-allowed-modes
19 '("ada" "apache" "asm" "awk" "c++" "c" "cc" "change-log" "context"
20 "css" "diary" "diff" "dns" "domtool" "emacs-lisp" "f90" "fortran"
21 "fundamental" "html" "java" "jython" "latex" "lisp" "lua" "m4"
22 "makefile" "markdown" "matlab" "maxima" "message" "modula-2" "muse"
23 "nroff" "octave" "org" "outline" "pascal" "perl" "ps" "python" "rst"
24 "ruby" "scheme" "sgml" "sh" "slang" "sml" "sml-cm" "sml-lex" "sml-yacc"
25 "sql" "tcl" "tex" "texinfo" "xml" "zone"))
26 ;; In case someone does <src lang="muse">
27 (setq muse-colors-evaluate-lisp-tags nil
28 muse-colors-inline-images nil)
29 ;; In case someone does <src lang="org">
30 (require 'org)
31 (setq org-inhibit-startup t
32 org-table-formula-evaluate-inline nil)
34 ;; Don't allow dangerous tags to be published
35 (setq muse-publish-enable-dangerous-tags nil)
37 ;;; Custom variables
39 (custom-set-variables
40 '(muse-html-charset-default "utf-8")
41 '(muse-html-encoding-default (quote utf-8))
42 '(muse-html-meta-content-encoding (quote utf-8))
43 '(muse-publish-comments-p t)
44 '(muse-publish-date-format "%b. %e, %Y"))
45 (custom-set-faces)
47 ;;; muse-init-simple.el ends here