emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Fwd: File local variables not being processed
Date: Fri, 24 May 2013 11:00:06 -0400	[thread overview]
Message-ID: <8761y8zamh.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: CAF3SDA7z5xFv89_cfa4tkUAO=DfRbrx3XcVW_cAhQYzdBd3Ngw@mail.gmail.com

"Daniel." <danielhilst@gmail.com> 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

      reply	other threads:[~2013-05-24 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAF3SDA6KVUSXc=wztJv-qRQ-BCQ6bKuLeq2Bz+2A1x-QKTSLeg@mail.gmail.com>
2013-05-24 12:33 ` Fwd: File local variables not being processed Daniel.
2013-05-24 15:00   ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761y8zamh.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).