From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: How to archive the whole file Date: Fri, 10 Oct 2014 10:54:56 +0200 Message-ID: <87fvewmhi7.fsf@gmail.com> References: <87tx3ckgna.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcVyn-0000FZ-44 for emacs-orgmode@gnu.org; Fri, 10 Oct 2014 04:55:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XcVyh-0000R5-0l for emacs-orgmode@gnu.org; Fri, 10 Oct 2014 04:55:17 -0400 Received: from plane.gmane.org ([80.91.229.3]:56384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XcVyg-0000Qg-RE for emacs-orgmode@gnu.org; Fri, 10 Oct 2014 04:55:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XcVye-0008J6-OG for emacs-orgmode@gnu.org; Fri, 10 Oct 2014 10:55:08 +0200 Received: from e178191168.adsl.alicedsl.de ([85.178.191.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Oct 2014 10:55:08 +0200 Received: from tjolitz by e178191168.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Oct 2014 10:55:08 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marcin Borkowski writes: Hi, > I have an Org file which should all go to the archive. What do I do? > Should I manually archive all level-one headlines? Should I just append > "_archive" to its filename? What is the best practice? there are probably build-in solution, but something on the line of #+BEGIN_SRC emacs-lisp (org-map-entries 'org-archive-subtree) #+END_SRC might do (totally untested!) -- cheers, Thorsten