* use non-alphabet ascii as todo keywords?
@ 2008-06-09 0:43 William Xu
2008-06-10 3:31 ` Dominik, C.
0 siblings, 1 reply; 4+ messages in thread
From: William Xu @ 2008-06-09 0:43 UTC (permalink / raw)
To: emacs-orgmode
Hi!
Can I use non-alphabet ascii as todo keywords? Like this:
,----
| (setq org-todo-keywords
| '((sequence "-" ">" "o" "x")))
`----
where each stands for: todo, doing, done, cancelled. They seem much
easier to recognize than TODO, DOING, DONE, CANCELLED, etc.
--
William
http://williamxu.net9.org
We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: use non-alphabet ascii as todo keywords?
2008-06-09 0:43 use non-alphabet ascii as todo keywords? William Xu
@ 2008-06-10 3:31 ` Dominik, C.
2008-06-10 3:38 ` Dominik, C.
0 siblings, 1 reply; 4+ messages in thread
From: Dominik, C. @ 2008-06-10 3:31 UTC (permalink / raw)
To: William Xu, emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1140 bytes --]
Unfortunately, Org relies on the fact that a TODO keyword ends at a word end that can be matched with the regular expression "\\>". So you would have to make ">" and "-" into word
characters. That can be done, but I fear it might break something else. Worth a try, though.
- Carsten
-----Original Message-----
From: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org on behalf of William Xu
Sent: Mon 6/9/2008 2:43 AM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] use non-alphabet ascii as todo keywords?
Hi!
Can I use non-alphabet ascii as todo keywords? Like this:
,----
| (setq org-todo-keywords
| '((sequence "-" ">" "o" "x")))
`----
where each stands for: todo, doing, done, cancelled. They seem much
easier to recognize than TODO, DOING, DONE, CANCELLED, etc.
--
William
http://williamxu.net9.org
We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #1.2: Type: text/html, Size: 1933 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: use non-alphabet ascii as todo keywords?
2008-06-10 3:31 ` Dominik, C.
@ 2008-06-10 3:38 ` Dominik, C.
2008-06-10 3:58 ` William Xu
0 siblings, 1 reply; 4+ messages in thread
From: Dominik, C. @ 2008-06-10 3:38 UTC (permalink / raw)
To: Dominik, C., William Xu, emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1676 bytes --]
And here is how to do this:
(add-hook 'org-mode-hook
(lambda ()
(modify-syntax-entry ?- "w" org-mode-syntax-table)
(modify-syntax-entry ?> "w" org-mode-syntax-table)))
Give it a try and report your experiences! Might actually work well.
HTH
- Carsten
-----Original Message-----
From: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org on behalf of Dominik, C.
Sent: Tue 6/10/2008 5:31 AM
To: William Xu; emacs-orgmode@gnu.org
Subject: RE: [Orgmode] use non-alphabet ascii as todo keywords?
Unfortunately, Org relies on the fact that a TODO keyword ends at a word end that can be matched with the regular expression "\\>". So you would have to make ">" and "-" into word
characters. That can be done, but I fear it might break something else. Worth a try, though.
- Carsten
-----Original Message-----
From: emacs-orgmode-bounces+dominik=science.uva.nl@gnu.org on behalf of William Xu
Sent: Mon 6/9/2008 2:43 AM
To: emacs-orgmode@gnu.org
Subject: [Orgmode] use non-alphabet ascii as todo keywords?
Hi!
Can I use non-alphabet ascii as todo keywords? Like this:
,----
| (setq org-todo-keywords
| '((sequence "-" ">" "o" "x")))
`----
where each stands for: todo, doing, done, cancelled. They seem much
easier to recognize than TODO, DOING, DONE, CANCELLED, etc.
--
William
http://williamxu.net9.org
We'll pivot at warp 2 and bring all tubes to bear, Mr. Sulu!
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[-- Attachment #1.2: Type: text/html, Size: 2618 bytes --]
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: use non-alphabet ascii as todo keywords?
2008-06-10 3:38 ` Dominik, C.
@ 2008-06-10 3:58 ` William Xu
0 siblings, 0 replies; 4+ messages in thread
From: William Xu @ 2008-06-10 3:58 UTC (permalink / raw)
To: emacs-orgmode
"Dominik, C." <C.Dominik@uva.nl> writes:
> And here is how to do this:
>
> (add-hook 'org-mode-hook
> (lambda ()
> (modify-syntax-entry ?- "w" org-mode-syntax-table)
> (modify-syntax-entry ?> "w" org-mode-syntax-table)))
>
> Give it a try and report your experiences! Might actually work well.
Yeah, works!
I've replaced all "TODO" in org-agenda-files with "-", now in
org-agenda, I can change item state from "-" to ">" as usual, etc.
Thanks!
--
William
http://williamxu.net9.org
A New Way of Taking Pills
A physician one night in Wisconsin being disturbed by a burglar, and
having no ball or shot for his pistol, noiselessly loaded the weapon with
small, hard pills, and gave the intruder a "prescription" which he thinks
will go far towards curing the rascal of a very bad ailment.
-- Nevada Morning Transcript, January 30, 1861
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-10 3:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 0:43 use non-alphabet ascii as todo keywords? William Xu
2008-06-10 3:31 ` Dominik, C.
2008-06-10 3:38 ` Dominik, C.
2008-06-10 3:58 ` William Xu
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).