From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Local variables in org files Date: Thu, 09 Jan 2014 17:29:01 -0500 Message-ID: <87k3e8aixe.fsf@alphaville.bos.redhat.com> References: <87a9f5xjsv.fsf@gmx.de> <87ob3luomu.fsf@alphaville.bos.redhat.com> <87d2k0j2uf.fsf@gmx.de> <86iotsg7hd.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1O6M-0004Gm-4Q for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 17:29:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W1O6G-0007NC-Rp for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 17:29:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:41072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W1O6G-0007N2-Ka for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 17:29:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W1O6B-0007a2-O7 for emacs-orgmode@gnu.org; Thu, 09 Jan 2014 23:29:11 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 23:29:11 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 09 Jan 2014 23:29:11 +0100 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 "Sebastien Vauban" writes: > Hello Michael, > > Michael Albinus wrote: >> Nick Dokos writes: >> >>> Not sure if there are any limits for the top style but maybe you could >>> combine the two styles of local variables - maybe: >>> >>> # -*- foo: (1 2 3 4) -*- >> >> This would move the problem to the headline. No idea, whether there is a >> limit (to be tested). But this extremely long and ugly headline would be >> visible - nothing I like to offer :-( >> >> But maybe we don't need the Local Variables block? Code blocks could help? >> >> * COMMENT Local Variables >> >> #+NAME: init >> #+BEGIN_SRC elisp >> (set (make-local-variable 'debbugs-org-ids) '(1 2 3)) >> #+END_SRC >> >> #+CALL: init >> >> However, I must have misread the documentation. The "#+CALL: init" >> directive has no effect when loading a respective xxx.org file :-( > > Nope, it doesn't, but you can add an `eval' directive in your Local > Variables section, and evaluate a call to the init block, like this: > > # Local variables: > # eval: (sbe "init") > # End: > Nice!