aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.local.d')
-rw-r--r--.emacs.local.d/config.el2
-rw-r--r--.emacs.local.d/modes/org.el19
2 files changed, 10 insertions, 11 deletions
diff --git a/.emacs.local.d/config.el b/.emacs.local.d/config.el
new file mode 100644
index 0000000..ae96b06
--- /dev/null
+++ b/.emacs.local.d/config.el
@@ -0,0 +1,2 @@
+(setq org-refile-path "~/refile.org")
+(setq org-agenda-files '("~/org/"))
diff --git a/.emacs.local.d/modes/org.el b/.emacs.local.d/modes/org.el
index 6f8f111..74af64a 100644
--- a/.emacs.local.d/modes/org.el
+++ b/.emacs.local.d/modes/org.el
@@ -11,7 +11,6 @@
(require 'org)
-(setq org-agenda-files '("~/src/git/te/org/"))
(setq org-cycle-separator-lines 0)
(setq org-startup-indented t)
(setq org-hide-leading-stars nil)
@@ -58,28 +57,26 @@
(setq org-log-reschedule (quote time))
;; CAPTURE ;;
-(setq org-default-notes-file "~/src/git/org/refile.org")
+(setq org-default-notes-file org-refile-path)
;; I use C-c c to start capture mode
(global-set-key (kbd "C-c c") 'org-capture)
;; Capture templates for: TODO tasks, Notes, appointments, phone calls, meetings, and org-protocol
(setq org-capture-templates
- (quote (("t" "todo" entry (file "~/src/git/org/refile.org")
+ (quote (("t" "todo" entry (file org-refile-path)
"* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t)
- ("r" "respond" entry (file "~/src/git/org/refile.org")
+ ("r" "respond" entry (file org-refile-path)
"* NEXT Respond to %:from on %:subject\nSCHEDULED: %t\n%U\n%a\n" :clock-in t :clock-resume t :immediate-finish t)
- ("n" "note" entry (file "~/src/git/org/refile.org")
+ ("n" "note" entry (file org-refile-path)
"* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)
- ("j" "Journal" entry (file+datetree "~/src/git/org/diary.org")
- "* %?\n%U\n" :clock-in t :clock-resume t)
- ("w" "org-protocol" entry (file "~/src/git/org/refile.org")
+ ("w" "org-protocol" entry (file org-refile-path)
"* TODO Review %c\n%U\n" :immediate-finish t)
- ("m" "Meeting" entry (file "~/src/git/org/refile.org")
+ ("m" "Meeting" entry (file org-refile-path)
"* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t)
- ("p" "Phone call" entry (file "~/src/git/org/refile.org")
+ ("p" "Phone call" entry (file org-refile-path)
"* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t)
- ("h" "Habit" entry (file "~/src/git/org/refile.org")
+ ("h" "Habit" entry (file org-refile-path)
"* NEXT %?\n%U\n%a\nSCHEDULED: %(format-time-string \"%<<%Y-%m-%d %a .+1d/3d>>\")\n:PROPERTIES:\n:STYLE: habit\n:REPEAT_TO_STATE: NEXT\n:END:\n"))))
(add-hook 'org-capture-mode-hook 'delete-other-windows)
nihil fit ex nihilo