emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Archive subtrees hierarchical (keep the parent structure)


From: Florian Adamsky
Subject: Re: [O] Archive subtrees hierarchical (keep the parent structure)
Date: Tue, 05 Aug 2014 17:32:22 +0200
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

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

[Prev in Thread] Current Thread [Next in Thread]