* File local variables not being processed
@ 2013-05-23 14:45 Daniel.
2013-05-24 12:33 ` Fwd: " Daniel.
0 siblings, 1 reply; 8+ messages in thread
From: Daniel. @ 2013-05-23 14:45 UTC (permalink / raw)
To: help-gnu-emacs
Hi, I have some .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..
Any ideias?
--
*"Do or do not. There is no try"*
* **Yoda Master*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Fwd: File local variables not being processed
2013-05-23 14:45 File local variables not being processed Daniel.
@ 2013-05-24 12:33 ` Daniel.
2013-05-24 15:00 ` Nick Dokos
0 siblings, 1 reply; 8+ 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] 8+ messages in thread
* Re: Fwd: File local variables not being processed
2013-05-24 12:33 ` Fwd: " Daniel.
@ 2013-05-24 15:00 ` Nick Dokos
0 siblings, 0 replies; 8+ 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] 8+ messages in thread
* Re: File local variables not being processed
[not found] <mailman.249.1369320341.22516.help-gnu-emacs@gnu.org>
@ 2013-05-24 15:43 ` Michael Heerdegen
2013-05-29 11:59 ` Daniel.
2013-05-29 12:21 ` Daniel.
0 siblings, 2 replies; 8+ messages in thread
From: Michael Heerdegen @ 2013-05-24 15:43 UTC (permalink / raw)
To: Daniel.; +Cc: help-gnu-emacs
Hi Daniel,
following your recipe in emacs -Q, I get the right colors with Emacs
24.3 (emacs-snapshot on Debian). In Emacs 23, however, the defined
keywords appear in black.
Which Emacs version are you using?
Regards,
Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File local variables not being processed
2013-05-24 15:43 ` Michael Heerdegen
@ 2013-05-29 11:59 ` Daniel.
2013-05-29 12:21 ` Daniel.
1 sibling, 0 replies; 8+ messages in thread
From: Daniel. @ 2013-05-29 11:59 UTC (permalink / raw)
To: Daniel., help-gnu-emacs
emacs 24.3.1 on windows..
2013/5/24 Michael Heerdegen <michael_heerdegen@web.de>
> Hi Daniel,
>
> following your recipe in emacs -Q, I get the right colors with Emacs
> 24.3 (emacs-snapshot on Debian). In Emacs 23, however, the defined
> keywords appear in black.
>
> Which Emacs version are you using?
>
>
> Regards,
>
> Michael.
>
--
*"Do or do not. There is no try"*
* **Yoda Master*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File local variables not being processed
2013-05-24 15:43 ` Michael Heerdegen
2013-05-29 11:59 ` Daniel.
@ 2013-05-29 12:21 ` Daniel.
2013-05-29 12:33 ` Daniel.
1 sibling, 1 reply; 8+ messages in thread
From: Daniel. @ 2013-05-29 12:21 UTC (permalink / raw)
To: Daniel., help-gnu-emacs
Yay, thanks Nick the problem was that my file was too large and local
variables were at begining of file..
I just move it down and now works fine, thanks!
Now I put a ^L char just before local variables, and after restart emacs
the local variables section is hidden,, How can I see it again?
I tried C-x n w but without success..
Cheers,!
2013/5/24 Michael Heerdegen <michael_heerdegen@web.de>
> Hi Daniel,
>
> following your recipe in emacs -Q, I get the right colors with Emacs
> 24.3 (emacs-snapshot on Debian). In Emacs 23, however, the defined
> keywords appear in black.
>
> Which Emacs version are you using?
>
>
> Regards,
>
> Michael.
>
--
*"Do or do not. There is no try"*
* **Yoda Master*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File local variables not being processed
2013-05-29 12:21 ` Daniel.
@ 2013-05-29 12:33 ` Daniel.
2013-05-29 12:42 ` Daniel.
0 siblings, 1 reply; 8+ messages in thread
From: Daniel. @ 2013-05-29 12:33 UTC (permalink / raw)
To: Daniel., help-gnu-emacs
Sorry, the problem has not todo with ^L, is about org not showing
commens... Cheers!
2013/5/29 Daniel. <danielhilst@gmail.com>
> Yay, thanks Nick the problem was that my file was too large and local
> variables were at begining of file..
>
> I just move it down and now works fine, thanks!
>
>
> Now I put a ^L char just before local variables, and after restart emacs
> the local variables section is hidden,, How can I see it again?
> I tried C-x n w but without success..
>
> Cheers,!
>
>
> 2013/5/24 Michael Heerdegen <michael_heerdegen@web.de>
>
>> Hi Daniel,
>>
>> following your recipe in emacs -Q, I get the right colors with Emacs
>> 24.3 (emacs-snapshot on Debian). In Emacs 23, however, the defined
>> keywords appear in black.
>>
>> Which Emacs version are you using?
>>
>>
>> Regards,
>>
>> Michael.
>>
>
>
>
> --
> *"Do or do not. There is no try"*
> * **Yoda Master*
>
--
*"Do or do not. There is no try"*
* **Yoda Master*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: File local variables not being processed
2013-05-29 12:33 ` Daniel.
@ 2013-05-29 12:42 ` Daniel.
0 siblings, 0 replies; 8+ messages in thread
From: Daniel. @ 2013-05-29 12:42 UTC (permalink / raw)
To: Daniel., help-gnu-emacs
Again, was not about not showing comments, but my local variables was
hiden below a level tree. (stupid)
Cheers,
2013/5/29 Daniel. <danielhilst@gmail.com>
> Sorry, the problem has not todo with ^L, is about org not showing
> commens... Cheers!
>
>
> 2013/5/29 Daniel. <danielhilst@gmail.com>
>
> Yay, thanks Nick the problem was that my file was too large and local
>> variables were at begining of file..
>>
>> I just move it down and now works fine, thanks!
>>
>>
>> Now I put a ^L char just before local variables, and after restart emacs
>> the local variables section is hidden,, How can I see it again?
>> I tried C-x n w but without success..
>>
>> Cheers,!
>>
>>
>> 2013/5/24 Michael Heerdegen <michael_heerdegen@web.de>
>>
>>> Hi Daniel,
>>>
>>> following your recipe in emacs -Q, I get the right colors with Emacs
>>> 24.3 (emacs-snapshot on Debian). In Emacs 23, however, the defined
>>> keywords appear in black.
>>>
>>> Which Emacs version are you using?
>>>
>>>
>>> Regards,
>>>
>>> Michael.
>>>
>>
>>
>>
>> --
>> *"Do or do not. There is no try"*
>> * **Yoda Master*
>>
>
>
>
> --
> *"Do or do not. There is no try"*
> * **Yoda Master*
>
--
*"Do or do not. There is no try"*
* **Yoda Master*
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-05-29 12:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 14:45 File local variables not being processed Daniel.
2013-05-24 12:33 ` Fwd: " Daniel.
2013-05-24 15:00 ` Nick Dokos
[not found] <mailman.249.1369320341.22516.help-gnu-emacs@gnu.org>
2013-05-24 15:43 ` Michael Heerdegen
2013-05-29 11:59 ` Daniel.
2013-05-29 12:21 ` Daniel.
2013-05-29 12:33 ` Daniel.
2013-05-29 12:42 ` Daniel.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.