From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Fwd: File local variables not being processed Date: Fri, 24 May 2013 11:00:06 -0400 Message-ID: <8761y8zamh.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UftTl-0005fe-LI for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:00:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UftTj-0005Hk-Er for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:00:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:51621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UftTj-0005Hd-90 for emacs-orgmode@gnu.org; Fri, 24 May 2013 11:00:23 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UftTf-0006y7-Fh for emacs-orgmode@gnu.org; Fri, 24 May 2013 17:00:19 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 17:00:19 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 May 2013 17:00:19 +0200 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 "Daniel." writes: > Hi, I have a todo.org file with some local variables, here is the file content > > # Local Variables: > # eval: (setq org-todo-keyword-faces  > #  '(("TOSTART" . "red") > #    ("PLANING" . "yellow") > #    ("DOING" . "yellow") > #    ("CHECKING" . "yellow") > #    ("WAITING" . "green") > #    ("DOCUMENTING" . "yellow"))) > # End: > > #+TODO: TOSTART PLANING DOING CHECKING WAITING DOCUMENTING RELEASE > > * TOSTART DO SOMETHING > > And here is the snippet of my .emacs > > ;; TODO file: > (defvar todo-file "~/todo.org" >   "My todo list!") > (setq enable-local-variables :all) > (setq enable-local-eval t) > (find-file todo-file) > > Still I don't get the org-mode colors specified on local variables.. If I put the same sexp on my .emacs it works..  > No ideas about what's wrong with your setup (unless you are testing on a file different from the short one you posted - see below), but it works fine here. You can always check whether the setup was effective, using C-h v org-todo-keyword-faces RET. One thing that you want to change is to put the local variable section at the end of the file: emacs starts looking at the end and looks back a certain distance - 3000 characters by default - and only within the last "page" of the file, i.e. not above a ^L (formfeed) character. It should still work for a short enough file like the one you posted, but once you start adding entries, the local variable section will soon become invisible to emacs. -- Nick