blob: 0ef549c699c6a08123b80b224ee42529e2a83cd8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
;;; org --- All configuration of org-mode
;;; Commentary:
;; Mostly the pdf export configuration
;;; Code:
;; configure evil org binding
(require-package 'evil-org)
(require 'evil-org)
(add-hook 'org-mode-hook 'evil-org-mode)
(evil-org-set-key-theme '(navigation insert textobjects additional calendar))
(require 'evil-org-agenda)
(evil-org-agenda-set-keys)
;; active Babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((sql . t)))
;; add additional languages with '((language . t)))
(setq org-latex-classes
'(("article"
"
\\documentclass[11pt]{article}
\\usepackage{xeCJK}
\\usepackage{indentfirst}
\\usepackage{amsmath}
\\setlength{\\parindent}{2em}
\\setCJKmainfont{SimSun}
\\numberwithin{equation}{section}
\\newtheorem{Theorem}{定理}[section]
\\newtheorem{Definition}[Theorem]{定义}
\\newtheorem{Lemma}[Theorem]{引理}
\\newtheorem{Corollary}[Theorem]{推论}
\\topmargin=-0.45in
\\evensidemargin=0in
\\oddsidemargin=0in
\\textwidth=6.5in
\\textheight=9.0in
\\headsep=0.25in
\\linespread{1.1}
"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
))
;; Use XeLaTex
(setq org-latex-pdf-process
'("xelatex -interaction nonstopmode -output-directory %o %f"
"xelatex -interaction nonstopmode -output-directory %o %f"
"xelatex -interaction nonstopmode -output-directory %o %f"))
(setq org-log-done t)
(setq org-agenda-files (directory-files-recursively "~/42/Personal/Plan/" "\\.org$"))
(setq org-todo-keywords
'((sequence "TODO(t)" "NEXT(n)" "PROG(p)" "INTR(i)" "DONE(d)")))
(setq org-agenda-span 'day)
(setq org-agenda-todo-ignore-time-comparion-use-seconds t)
(setq org-agenda-custom-commands
'(("n" "Agenda / INTR / PROG / NEXT"
((agenda "" nil)
(Todo "INTR" nil)
(todo "PROG" nil)
(todo "NEXT" nil))
nil)))
(provide 'init-org)
;;; init-org.el ends here
|