emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Set org-todo-keywords as file-local variables
@ 2014-10-07  6:46 Thorsten Jolitz
  2014-10-07  8:29 ` Andreas Leha
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2014-10-07  6:46 UTC (permalink / raw)
  To: emacs-orgmode


Hi List,

I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
org-todo-keywords' in that file's buffer suggests I was successfull:

,----
| org-todo-keywords is a variable defined in `org.el'.
| Its value is shown below.
| 
|   This variable's value is file-local.
| 
| Documentation: [...]
| Value:
| ((sequence "|" "E(e)" "X(x)" "C(c)" "R(r)" "M(m)"))
| 
| Original value was 
| ((sequence "TODO" "DONE"))
| 
| Local in buffer foo-test.org; global value is 
| ((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!/!)")
|  (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE"))
| 
| [back]
`----

but when doing C-c C-t in that buffer, 'org-todo' still offers me the
usual selection menu based on the variable's global value.

Am I missing something here?

-- 
cheers,
Thorsten

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

* Re: Set org-todo-keywords as file-local variables
  2014-10-07  6:46 Set org-todo-keywords as file-local variables Thorsten Jolitz
@ 2014-10-07  8:29 ` Andreas Leha
  2014-10-07  8:43   ` Thorsten Jolitz
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Leha @ 2014-10-07  8:29 UTC (permalink / raw)
  To: emacs-orgmode

Hi Thorsten,


Thorsten Jolitz <tjolitz@gmail.com> writes:
> Hi List,
>
> I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
> org-todo-keywords' in that file's buffer suggests I was successfull:
>
> ,----
> | org-todo-keywords is a variable defined in `org.el'.
> | Its value is shown below.
> | 
> |   This variable's value is file-local.
> | 
> | Documentation: [...]
> | Value:
> | ((sequence "|" "E(e)" "X(x)" "C(c)" "R(r)" "M(m)"))
> | 
> | Original value was 
> | ((sequence "TODO" "DONE"))
> | 
> | Local in buffer foo-test.org; global value is 
> | ((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!/!)")
> |  (sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)" "PHONE"))
> | 
> | [back]
> `----
>
> but when doing C-c C-t in that buffer, 'org-todo' still offers me the
> usual selection menu based on the variable's global value.
>
> Am I missing something here?

I have some files with locally set todo keywords.  I use a different
interface through:

--8<---------------cut here---------------start------------->8---
#+TODO: TODO(t) WAITING(w!) | DONE(d!) CANCELED(c@/!)
--8<---------------cut here---------------end--------------->8---

Does that help?
Andreas

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

* Re: Set org-todo-keywords as file-local variables
  2014-10-07  8:29 ` Andreas Leha
@ 2014-10-07  8:43   ` Thorsten Jolitz
  0 siblings, 0 replies; 3+ messages in thread
From: Thorsten Jolitz @ 2014-10-07  8:43 UTC (permalink / raw)
  To: emacs-orgmode

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

Hi Andreas,

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>> Hi List,
>>
>> I set 'org-todo-keywords' as file-local variables in a file, and 'C-h v
>> org-todo-keywords' in that file's buffer suggests I was successfull:

[...]

>> but when doing C-c C-t in that buffer, 'org-todo' still offers me the
>> usual selection menu based on the variable's global value.
>>
>> Am I missing something here?
>
> I have some files with locally set todo keywords.  I use a different
> interface through:
>
> --8<---------------cut here---------------start------------->8---
> #+TODO: TODO(t) WAITING(w!) | DONE(d!) CANCELED(c@/!)
> --8<---------------cut here---------------end--------------->8---
>
> Does that help?

Yes, thanks, that works and is much better than directly setting
file-local vars!

-- 
cheers,
Thorsten

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

end of thread, other threads:[~2014-10-07  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-07  6:46 Set org-todo-keywords as file-local variables Thorsten Jolitz
2014-10-07  8:29 ` Andreas Leha
2014-10-07  8:43   ` Thorsten Jolitz

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