FIX make captured headlines have creation timestamps again

This commit is contained in:
Nathan Dwarshuis 2020-07-04 09:17:22 -04:00
parent 22526e5b58
commit 3daa036c04
1 changed files with 9 additions and 6 deletions

View File

@ -1815,6 +1815,9 @@ Aesthetically, I like all my keywords to have bold colors.
("CANC" :foreground "deep sky blue" :weight bold))) ("CANC" :foreground "deep sky blue" :weight bold)))
#+END_SRC #+END_SRC
**** habits **** habits
:PROPERTIES:
:ID: c02e0799-10e0-41c1-96dd-9d7ee335a408
:END:
Habits consider any "done" todo keyword as "complete." I have =CANC= as a done keyword, which I don't want to be displayed as "complete" in the habit tracker. Override this hardcoded behavior with advice. Habits consider any "done" todo keyword as "complete." I have =CANC= as a done keyword, which I don't want to be displayed as "complete" in the habit tracker. Override this hardcoded behavior with advice.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun nd/org-habit-parse-todo-advice (orig-fn &rest args) (defun nd/org-habit-parse-todo-advice (orig-fn &rest args)
@ -2020,12 +2023,12 @@ To save one more keystroke (since I use evil mode), trigger insert mode upon ope
:END: :END:
In some capture templates I want to automatically store a link to the entry so I can use it later. This can be done using one the the capture-finalize hooks and simply running =org-store-link= on the capture (note this only makes sense for headlines). In some capture templates I want to automatically store a link to the entry so I can use it later. This can be done using one the the capture-finalize hooks and simply running =org-store-link= on the capture (note this only makes sense for headlines).
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-capture-before-finalize-hook (add-hook 'org-capture-before-finalize-hook
(lambda () (lambda ()
(when (org-capture-get :x-autolink) (when (org-capture-get :x-autolink)
(save-excursion (save-excursion
(org-back-to-heading) (org-back-to-heading)
(call-interactively #'org-store-link))))) (call-interactively #'org-store-link)))))
#+END_SRC #+END_SRC
*** refile *** refile
:PROPERTIES: :PROPERTIES: