1
emacs org-modeでキャプチャのための動的ファイル名を作成する方法があるかどうかを確認しようとしています。orgキャプチャの動的ファイルエントリを入力する方法
("z" "test" entry (file+headline ***A date specific headline*** "Notes"))
"** %^{prompt}")
私は動的に月ごとに作成したファイルを持つことができるように、ファイルの一部に日付と年を渡すためにいくつかの簡単な方法はあります。
`(("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")))
- 私は最終的にそれがbackquotingを使用して、作業持って
(concat "/home/me/file/report_notes_" (format-time-string "%m_%Y") ".org")
編集:私が好きなことは、このような何かであります
私は同じ質問にthis answerを読んだ後に答えに達しました。