about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d/wpc/packages/wpc-org.el
blob: c2682be5c1586d8c36294ddedad54ae824a76333 (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
;;; org.el --- My org preferences -*- lexical-binding: t -*-
;; Author: William Carroll <wpcarro@gmail.com>

;;; Commentary:
;; Hosts my org mode preferences

;;; Code:

(use-package org
  :preface
  (defconst wpc-org-directory
    "~/Dropbox/org")
  (defconst ub-org-directory
    "~/Dropbox/sprint-planning-staging")
  (defun wpc/org-file (file)
    (f-join wpc-org-directory (f-swap-ext file "org")))
  (defun ub/org-file (file)
    (f-join ub-org-directory (f-swap-ext file "org")))
  :config
  ; (general-add-hook org-mode-hook (disable linum-mode))
  (general-define-key :prefix "C-c"
           "l" #'org-store-link
           "a" #'org-agenda
           "c" #'org-capture)
  (setq org-default-notes-file (wpc/org-file "notes"))
  (setq org-log-done 'time)
  (setq org-agenda-files (list (wpc/org-file "work")
                               (wpc/org-file "personal")))
  (setq org-capture-templates
        `(("t" "Todo" entry (file+heading ,(ub/org-file "index") "Ideas")
           "* TODO %?\n  %i"))))

(use-package org-bullets
  :after (org)
  :config
  (general-add-hook 'org-mode-hook (enable org-bullets-mode)))

(provide 'wpc-org)
;;; wpc-org.el ends here