2018-04-25 19:26:53 +02:00
|
|
|
;;; 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
|
2019-01-13 20:33:17 +01:00
|
|
|
; (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)
|
2018-04-25 19:26:53 +02:00
|
|
|
(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)
|
2019-01-13 20:33:17 +01:00
|
|
|
:config
|
|
|
|
(general-add-hook 'org-mode-hook (enable org-bullets-mode)))
|
2018-04-25 19:26:53 +02:00
|
|
|
|
|
|
|
(provide 'wpc-org)
|
2019-01-13 20:33:17 +01:00
|
|
|
;;; wpc-org.el ends here
|