diff options
author | Raul Benencia <rul@kalgan.cc> | 2021-07-29 09:24:23 -0700 |
---|---|---|
committer | Raul Benencia <rul@kalgan.cc> | 2021-07-29 09:32:27 -0700 |
commit | 2d544720b95bbd7c03469948e84d67933a93cd72 (patch) | |
tree | 8c0053062dc36a4d059227b361fcde65630986bf /.emacs.local.d/modes/org.el | |
parent | a390e8f3acca537460cdae7544af7750b70c2961 (diff) |
emacs: separate some configs to config.el
Diffstat (limited to '.emacs.local.d/modes/org.el')
-rw-r--r-- | .emacs.local.d/modes/org.el | 19 |
1 files changed, 8 insertions, 11 deletions
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) |