-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.el
84 lines (77 loc) · 3.17 KB
/
org.el
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
82
83
84
(when (require 'org-install nil t)
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(setq org-directory "~/org")
(setq org-default-notes-file (concat org-directory "/notes.org"))
(setq org-capture-templates
`(("t" "Todo" entry (file+headline ,(concat org-directory "/gtd.org") "Tasks")
"* TODO %?\n %i\n %a")
("d" "Todo (context-free)" entry (file+headline ,(concat org-directory "/gtd.org") "Tasks")
"* TODO %?")
("j" "Journal" entry (file+datetree ,(concat org-directory "/journal.org"))
"* %?\nEntered on %U\n %i\n %a")
("k" "Diary" entry (file+datetree ,"/media/truecrypt1/diary.org")
"* %?\nEntered on %U\n %i")
("a" "ASPlanner Todo" entry (file+headline "~/Projects/Autostore/asplanner.org" "Tasks")
"* TODO %?\n %i\n %a")
("u" "ASPlanner Journal" entry (file+datetree "~/Projects/Autostore/asplanner.org")
"* %?\nEntered on %U\n %i\n %a")
))
(setq org-todo-keywords
(quote ((sequence "TODO(t)" "|" "DONE(d!/!)")
(sequence "WAITING(w@/!)" "SOMEDAY(s!)" "|" "CANCELLED(c@/!)")
(sequence "ISSUE(i)" "|" "POSTPONED(p)" "|" "DISCUSS(u)" "|" "RESOLVED(r)"))))
(setq org-todo-keyword-faces
(quote (("TODO" :foreground "red" :weight bold)
("NEXT" :foreground "blue" :weight bold)
("DONE" :foreground "forest green" :weight bold)
("WAITING" :foreground "yellow" :weight bold)
("SOMEDAY" :foreground "goldenrod" :weight bold)
("CANCELLED" :foreground "orangered" :weight bold)
("ISSUE" :foreground "red" :weight bold)
("POSTPONED" :foreground "goldenrod" :weight bold)
("DISCUSS" :foreground "yellow" :weight bold)
("RESOLVED" :foreground "forest green" :weight bold))))
;; active Babel languages
(org-babel-do-load-languages
'org-babel-load-languages
'((shell . t)
(emacs-lisp . t)
(perl . t)
(python . t)
(ruby . t)
(lisp . t)
))
(global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb))
(when (require 'ox-publish nil t)
(setq org-publish-project-alist
'(
("org-notes"
:base-directory "~/org/public/"
:base-extension "org"
:publishing-directory "~/public_html/";"/ssh:kristian@home.cavatina.no:/var/www/home.cavatina.no/htdocs/"
:recursive t
:section-numbers nil
:publishing-function org-html-publish-to-html
:headline-levels 4 ; Just the default for this project.
; :auto-preamble t
:style "<link rel=\"stylesheet\" href=\"style/style.css\" type=\"text/css\"/>"
:auto-sitemap t
:sitemap-title ""
:makeindex t
)
("org-static"
:base-directory "~/org/public/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/public_html/";"/ssh:kristian@home.cavatina.no:/var/www/home.cavatina.no/htdocs/"
:recursive t
:publishing-function org-publish-attachment
)
("org" :components ("org-notes" "org-static"))
)))
(when (require 'org-re-reveal nil t)
(setq org-re-reveal-root "file:///C:/Users/2795/src/reveal.js"))
(setq org-src-preserve-indentation t)
(setq org-edit-src-content-indentation 0)