From ae351d3711437243045cdf699d5163deb5e0afcd Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 4 Aug 2022 21:17:17 -0700 Subject: move %cursor in Howm templates --- .emacs.d/init.el | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c0a24fad..5edb04b4 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -4324,13 +4324,19 @@ We don't use the FILES parameter in the entry for \"d\" in howm-template '(;; If it is to have a title, add it after writing some content. - "%date %file\n\n%cursor" - ;; Literature note -- write a title right away. + ;; We have point start before %file as we will often want to delete + ;; the link or replace its target. + "%date%cursor %file\n\n" + + ;; Literature note, will write a title before any content. We make + ;; the title a come-from link such that the literature note appears + ;; early in the list of results if we follow a goto link with the same + ;; title as the literature note. ;; - ;; We make the title a come-from link such that the literature note - ;; appears early in the list of results if we follow a goto link with - ;; the same title as the literature note. - "#+title: <<< %title%cursor\n%date %file\n\n")) + ;; Have point start before %file, not ready to insert a title, for + ;; consistency with the other template. (However, we will indeed + ;; often replace the link target with a URL, PDF filename etc..) + "#+title: <<< %title\n%date%cursor %file\n\n")) ;; Default sorting for certain views. (defun spw/howm-list-all (&rest ignore) -- cgit v1.2.3