From 4ebdc5851ba8b2df55c18e16e615c7698a17ae49 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 8 Apr 2015 15:10:44 -0700 Subject: [PATCH] Make non linked appear before linked options for org capture templates --- dotfiles/emacs.d/init.el | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 67085d1f..48e1eff6 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -77,7 +77,7 @@ (eval-when-compile (require 'use-package)) ;; use-package is only needed at compile time. (require 'diminish) -(require 'bind-key) +(require 'bind-key) (use-package benchmark-init :ensure t @@ -839,27 +839,27 @@ the same tree node, and the headline of the tree node in the Org-mode file." `(,org-gtd-file ,org-habits-file ,@(org-projectile:todo-files) ,org-calendar-file)))) - (add-to-list 'org-capture-templates - `("g" "GTD Todo" entry (file ,org-gtd-file) - (function org-capture-make-todo-template))) - (add-to-list 'org-capture-templates `("t" "GTD Todo (Linked)" entry (file ,org-gtd-file) (function org-capture-make-linked-todo-template))) (add-to-list 'org-capture-templates - `("c" "Calendar entry" entry + `("g" "GTD Todo" entry (file ,org-gtd-file) + (function org-capture-make-todo-template))) + + (add-to-list 'org-capture-templates + `("y" "Calendar entry (Linked)" entry (file ,org-calendar-file) - "* %? + "* %? %A :PROPERTIES: :CREATED: %U :END: %^T")) (add-to-list 'org-capture-templates - `("y" "Calendar entry (Linked)" entry + `("c" "Calendar entry" entry (file ,org-calendar-file) - "* %? %A + "* %? :PROPERTIES: :CREATED: %U :END: @@ -874,9 +874,9 @@ the same tree node, and the headline of the tree node in the Org-mode file." :STYLE: habit :END:")) - (add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p")) (add-to-list 'org-capture-templates (org-projectile:project-todo-entry "l" "* TODO %? %a\n" "Linked Project TODO")) + (add-to-list 'org-capture-templates (org-projectile:project-todo-entry "p")) (let ((this-week-high-priority ;; The < in the following line works has behavior that is opposite