From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Local variables and babel Date: Tue, 14 Jan 2014 09:25:58 -1000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W39cs-0003SR-0T for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:26:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W39cl-0003bQ-2a for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:26:13 -0500 Received: from alt-proxy11.mail.unifiedlayer.com ([74.220.211.241]:50538) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1W39ck-0003bE-Rz for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 14:26:07 -0500 Received: from [72.253.144.27] (port=54115 helo=poto.myhome.westell.com) by box472.bluehost.com with esmtpsa (UNKNOWN:CAMELLIA128-SHA:128) (Exim 4.80) (envelope-from ) id 1W39cf-0002fK-Cg for emacs-orgmode@gnu.org; Tue, 14 Jan 2014 12:26:01 -0700 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: Org-mode Aloha all, Impressed by the many problems described on the ML that are caused by a setting in .emacs, I've slowly been working to make my configuration buffer local, using source code blocks stored in my local library of babel or placed in a noexport section of the Org mode file and then evaluated in the local variables section at the bottom of the file. So far, I like this approach. This led me to try to incorporate some of the file-specific setup steps into the local variables as well. For instance, in a file where I'm working with Common Lisp source code blocks and a graph library, I have this: # eval: (slime) # eval: (org-sbe "graph-setup") My goal is to open the Org mode file and find that everything is ready for me to work. What I've found is that the graph-setup doesn't have any effect on the Common Lisp environment when run this way. It works fine if, after slime is up and running, I go to the graph-setup source code block and evaluate it with C-c C-c. I'm guessing that I might be running into a concurrency problem here, such that the local variable evaluation of graph-setup is taking place before slime has finished setting itself up (which takes many seconds on my machine). I am well beyond my programming abilities here and would like to have opinions on whether this approach is potentially workable and, if so, how it might be implemented. All the best, Tom -- T.S. Dye & Colleagues, Archaeologists 735 Bishop St, Suite 315, Honolulu, HI 96813 Tel: 808-529-0866, Fax: 808-529-0884 http://www.tsdye.com