我试图弄清楚是否有某种方法可以创建动态文件名以在 emacs org-mode 中捕获。
("z" "test" entry (file+headline ***A date specific headline*** "Notes"))
"** %^{prompt}")
是否有一些简单的方法将日期和年份传递给文件部分,以便我可以为每个月动态创建一个文件。我想要的是这样的:
(concat "/home/me/file/report_notes_" (format-time-string "%m_%Y") ".org")
编辑 - 我终于使用反引用让它工作了:
`(("z" "test" entry (file+headline ,(capture-report-date-file "/path/path/name_")
"Notes")
"** %^{prompt}")))
然后写一个这样的函数:
(defun capture-report-date-file (path)
(concat path (format-time-string "%m_%Y")))
读完后我得到了答案这个答案 https://stackoverflow.com/a/6809986/233057类似的问题。
看看“org-daypage”:https://github.com/almost/org-daypage https://github.com/almost/org-daypage
现在它会创建一个当天的页面并将其保存到特定目录,也许您可以根据您的需要修改代码。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)