From 2d544720b95bbd7c03469948e84d67933a93cd72 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Thu, 29 Jul 2021 09:24:23 -0700 Subject: emacs: separate some configs to config.el --- .emacs.local.d/modes/org.el | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to '.emacs.local.d/modes') 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) -- cgit v1.2.3