Dear Ken,

On Tuesday, Aug 05 2014, Ken Mankoff wrote:

> This code looks useful and an improvement over the previous setup I was
> using. https://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01218.html
>
> Can you explain what else is needed for your code to work? Currently I
> have

at the moment, I just run the function org-archive-subtree-hierarchical
interactively.

> #+BEGIN_SRC emacs-lisp
> (setq org-archive-location (concat org-directory "/archive/%s_archive::"))
> #+END_SRC
>
> But I don't see things archived as subtrees with just this. Do I need
> new/different configuration to work with your code?

No, just run M-x org-archive-subtree-hierarchical. I tried the code with
the latest org-mode version 8.3beta and with emacs -q and in both cases
it works without problems.

However, if you set the following variable to the new function, it
should work with the default keybinding for org-archive:

#+BEGIN_SRC emacs-lisp
(setq org-archive-default-command 'org-archive-subtree-hierarchical)
#+END_SRC

If you have any trouble, please give me a note.

Best
--
Florian Adamsky
http://florian.adamsky.it/

Reply via email to