summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-08-04 21:17:17 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-08-05 11:38:04 -0700
commitae351d3711437243045cdf699d5163deb5e0afcd (patch)
tree5579486b60931512fb39ef309c603bda08fef562
parent8848adb7cfb08b939f1dda56a7d7a4c82e40d9ba (diff)
downloaddotfiles-ae351d3711437243045cdf699d5163deb5e0afcd.tar.gz
move %cursor in Howm templates
-rw-r--r--.emacs.d/init.el18
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)