Hi Carsten, Matthew Lundin <m...@imapmail.org> writes: > > I had one more question/request concerning archives.
> Would it perhaps be possible to enable the file name substitution > (i.e., "%s") after the double semi-colon, so that the file name can > be used as a headline within the archive file? Sorry to follow up with one more post. Though I confess that I'm on shaky ground here, I seem to have been able to accomplish the desired behavior (i.e., a single yearly archive file with headings showing the original file name) by advising the function org-archive-subtree. ,---- | (setq org-archive-location (concat "~/archive/" (format-time-string "%Y") ".org::")) | | (defadvice org-archive-subtree (around my-org-archive-subtree-around) | (let ((org-archive-location (concat "~/archive/" (format-time-string "%Y") ".org::* "(buffer-name)))) | ad-do-it)) | | (ad-activate 'org-archive-subtree) `---- If anyone sees anything blatantly wrong or hopelessly naive about this setup, feel free to let me know. If it looks O.K., then please feel free to disregard my previous request about changing the behavior of org-archive-location. Best, Matt _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode