Show loaded project when making a note

This commit is contained in:
Tom Willemse 2014-12-27 21:32:11 +01:00
parent 84b65d4e3b
commit 6a8d1ea37b

View file

@ -62,6 +62,9 @@
" :DIRECTORY: =" default-directory "=\n" " :DIRECTORY: =" default-directory "=\n"
(when (buffer-file-name) " :FILE: [[file:%F][%F]]\n") (when (buffer-file-name) " :FILE: [[file:%F][%F]]\n")
(when (org-clocking-p) " :TASK: %K\n") (when (org-clocking-p) " :TASK: %K\n")
(when desktop-dirname
(concat " :PROJECT: "
(file-name-base (directory-file-name desktop-dirname))))
"\n %?")) "\n %?"))
(defun oni:org-maybe-outline-path () (defun oni:org-maybe-outline-path ()