diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-08-04 21:17:17 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-08-05 11:38:04 -0700 |
commit | ae351d3711437243045cdf699d5163deb5e0afcd (patch) | |
tree | 5579486b60931512fb39ef309c603bda08fef562 | |
parent | 8848adb7cfb08b939f1dda56a7d7a4c82e40d9ba (diff) | |
download | dotfiles-ae351d3711437243045cdf699d5163deb5e0afcd.tar.gz |
move %cursor in Howm templates
-rw-r--r-- | .emacs.d/init.el | 18 |
1 files 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) |