summary refs log tree commit diff
path: root/emacs.d/core/core-org.el
blob: 85abeed887e0a2a788b457db0d70750d089fe671 (plain) (blame)
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
(defvar fcuny/org-directory "~/notes")

(use-package org
  :mode ("\\.org$" . org-mode)
  :ensure t
  :bind (
         ("C-c c" . org-capture)
         ("C-c a" . org-agenda))
  :config
  (progn
    (add-hook 'org-mode-hook #'toggle-word-wrap)
    (org-babel-do-load-languages
     'org-babel-load-languages
     '((scheme . t)
       (sh . t)
       (calc . t))))
  :init
  (setq org-startup-indented t
        org-src-fontify-natively t
        org-src-tab-acts-natively t
        org-confirm-babel-evaluate nil
        org-directory fcuny/org-directory
        org-default-notes-file (concat org-directory "/refile.org")
        org-refile-targets '((org-agenda-files . (:maxlevel . 6)))
        org-outline-path-complete-in-steps t
        org-todo-keywords '((sequence "➜(t)" "⎔(i!)" "•(w!)" "|" "✔(d!)" "✘(c!)"))
        org-todo-keyword-faces
        (quote (("➜" :foreground "red" :weight bold)
                ("✔" :foreground "forest green" :weight bold)
                ("⎔" :foreground "orange" :weight bold)
                ("•" :foreground "magenta" :weight bold)
                ("✘" :foreground "forest green" :weight bold)))
        org-link-abbrev-alist '(("src" . "~/src/%s")
                                ("jira" . "https://jira.twitter.biz/browse/%s")
                                ("rb" . "https://reviewboard.twitter.biz/r/%s")
                                ("go" . "http://go/%s")
                                ("gdoc" . "https://docs.google.com/document/d/%s")
                                ("gsheet" . "https://docs.google.com/spreadsheets/d/%s"))
        org-capture-templates '(("t" "Todo" entry (file+headline (concat org-directory "/refile.org") "Tasks")
                                 "* ➜ %?\n %i")
                                ("m" "Meeting" entry (file+headline (concat org-directory "/twitter.org") "Meetings")
                                 "* %T %?\n %i")
                                ("q" "Quick Note" entry (file+headline (concat org-directory "/refile.org") "Notes")
                                 "* %T %?\n %i"))
        org-agenda-files (list (concat org-directory "/twitter.org")
                               (concat org-directory "/personal.org")
                               (concat org-directory "/notebook.org"))))

(provide 'core-org)