emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 751e6d31fc6ec3ff6096d510c05e9e39e4b5cbb8
parent 256a835636d58ba1dc5ad53a2ed283d0246b314b
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat, 28 Mar 2020 22:44:56 +0300

org-mode tweaks

Diffstat:
Minit.org | 32+++++++++++++++++++++++++++-----
1 file changed, 27 insertions(+), 5 deletions(-)

diff --git a/init.org b/init.org @@ -335,13 +335,35 @@ project I am working on. (setq org-use-fast-todo-selection t) #+END_SRC -*** Org-capture +*** Org-capture and refiling #+BEGIN_SRC emacs-lisp (setq org-capture-templates - (quote (("t" "todo" entry (file "~/Org/refile.org") - "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) - ("n" "note" entry (file "~/Org/refile.org") - "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t)))) + (quote (("t" "todo" entry (file "~/Org/refile.org") + "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) + ("r" "respond" entry (file "~/Org/refile.org") + "* 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 "~/Org/refile.org") + "* %? :NOTE:\n%U\n%a\n" :clock-in t :clock-resume t) + ("j" "Journal" entry (file+datetree "~/Org/diary.org") + "* %?\n%U\n" :clock-in t :clock-resume t) + ("w" "org-protocol" entry (file "~/Org/refile.org") + "* TODO Review %c\n%U\n" :immediate-finish t) + ("m" "Meeting" entry (file "~/Org/refile.org") + "* MEETING with %? :MEETING:\n%U" :clock-in t :clock-resume t) + ("p" "Phone call" entry (file "~/Org/refile.org") + "* PHONE %? :PHONE:\n%U" :clock-in t :clock-resume t) + ("h" "Habit" entry (file "~/Org/refile.org") + "* 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")))) +#+END_SRC + +Let's set targets to =org-agenda-files=. +#+BEGIN_SRC emacs-lisp +(setq org-refile-targets (quote ((nil :maxlevel . 9) + (org-agenda-files :maxlevel . 9)))) + +(setq org-refile-use-outline-path t) +(setq org-outline-path-complete-in-steps nil) +(setq org-refile-allow-creating-parent-nodes (quote confirm)) #+END_SRC ** Magit