From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Local variables in org files Date: Thu, 09 Jan 2014 22:39:42 +0100 Message-ID: <86iotsg7hd.fsf@somewhere.org> References: <87a9f5xjsv.fsf@gmx.de> <87ob3luomu.fsf@alphaville.bos.redhat.com> <87d2k0j2uf.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org 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: --8<---------------cut here---------------start------------->8--- # Local variables: # eval: (sbe "init") # End: --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban