emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Fwd: File local variables not being processed
       [not found] <CAF3SDA6KVUSXc=wztJv-qRQ-BCQ6bKuLeq2Bz+2A1x-QKTSLeg@mail.gmail.com>
@ 2013-05-24 12:33 ` Daniel.
  2013-05-24 15:00   ` Nick Dokos
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel. @ 2013-05-24 12:33 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

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..

Any ideias?



-- 
*"Do or do not. There is no try"*
*  **Yoda Master*



-- 
*"Do or do not. There is no try"*
*  **Yoda Master*

[-- Attachment #2: Type: text/html, Size: 1828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fwd: File local variables not being processed
  2013-05-24 12:33 ` Fwd: File local variables not being processed Daniel.
@ 2013-05-24 15:00   ` Nick Dokos
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2013-05-24 15:00 UTC (permalink / raw)
  To: emacs-orgmode

"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-24 15:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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

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).