Org-mode 用の設定
最終更新日:2009-12-15
org-mode用に .emacs で設定している値。主に customize による設定です。
HTMLで出力して閲覧することをメインにエクスポート周りの設定を調整してあります。
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(add-to-list 'completion-ignored-extensions ".html")
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(org-export-author-info nil)
'(org-export-default-language "ja")
'(org-export-headline-levels 4)
'(org-export-html-style "<style type=\"text/css\">
body { text-align: center; }
#content {
margin: 0px auto;
width: 800px; text-align:left; }
h1 { border-bottom: 1px solid black; }
.outline-2 { padding: 0px 16px; }
.outline-3 { padding: 0px 16px; }
.outline-text-2 { padding: 0px 16px; }
.outline-text-3 { padding: 0px 16px; }
.example { }
pre {
border: 1pt solid #AEBDCC;
background-color: #F3F5F7;
padding: 5pt;
font-family: courier, monospace;
font-size: 90%;
overflow:auto;
}
code {
border: 1pt solid #AEBDCC;
background-color: #F3F5F7;
font-family: courier, monospace;
font-size: 90%;
}
.todo { color: red; }
.done { color: green; }
.tag { float:right; color:red; }
#postamble { display:none; }
</style>")
'(org-export-html-style-include-default nil)
'(org-export-html-style-include-scripts nil)
'(org-export-with-section-numbers nil)
'(org-export-with-sub-superscripts nil)
'(org-export-with-toc nil)
'(org-export-show-temporary-export-buffer nil)
'(org-hide-leading-stars t)
'(org-log-done (quote time))
'(org-startup-folded (quote content)
)
CSS のデフォルト設定を参照するには、scratch bufferで
org-export-html-style-default の後に C-j で、デフォルトCSSが設定されている変数の値を表示すればOKです。
普段あまりHTMLを編集することがないので、思い切ってEmacsのファイル名補完から .html ファイルを 無視するように設定することで、HTML出力後でもOrgファイルを開きやすくしてあります。