From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Restored previous folded state after buffer opened again? Date: Sat, 25 Jul 2009 13:57:50 -0500 Message-ID: <87ocr8r3o1.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MUmOZ-0000Nu-BF for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 14:54:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MUmOU-0000Ni-Uj for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 14:54:58 -0400 Received: from [199.232.76.173] (port=43933 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUmOU-0000Nf-Py for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 14:54:54 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:47193) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MUmOU-0008RQ-De for emacs-orgmode@gnu.org; Sat, 25 Jul 2009 14:54:54 -0400 In-Reply-To: (User's message of "Sat, 25 Jul 2009 18:06:31 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: User Cc: emacs-orgmode@gnu.org User writes: > Is there a way to do it? I use saveplace.el which puts me back to > the position where I was last time. I use nofold, so the place is > not hidden when opening the file. Currently, I'm satisfied with > this setup, but it would even be nicer if the previous folded > state was also restored. > > Does org-mode have support for that? No. Org-mode does not automatically save and restore the fold-state of a file. However, you can specify a default fold-state for particular trees/subtrees by using the visibility property. See: http://orgmode.org/manual/index.html#Visibility-cycling Best, Matt