From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Configuration query Date: Wed, 17 Nov 2010 11:19:10 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34775 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIpPS-0004pO-HU for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:19:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIpPQ-0007CU-Q9 for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:19:17 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:46934) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIpPQ-0007CG-Gc for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:19:16 -0500 Received: from [72.253.173.33] (helo=[192.168.1.45]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1PIpPM-0000iz-2U for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 14:19:12 -0700 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: Emacs Org mode mailing list Aloha all, This might be a naive query, but I'm wondering if there is some standard way to put the emacs configuration back to a previous state outside of the customization interface? I'm finding that I frequently work with Org-mode files that need different configurations. I typically have a #+begin_src emacs-lisp block in these files that I can execute with C-c C-c, so that emacs behaves the way the file requires for the task at hand. When I'm done, though, and jump onto the next task, which might depend on my standard configuration to work correctly, I sometimes find that the changes I've made break things. At this point, I typically save, quit emacs and start over. What I'd like to do is be able to have, in each file that contains an emacs-lisp source block that changes the configuration, a corresponding source code block that puts things back the way they were before the block was executed. Perhaps there is an easy way to do this? All the best, Tom