From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dominik, C." Subject: RE: use non-alphabet ascii as todo keywords? Date: Tue, 10 Jun 2008 05:38:46 +0200 Message-ID: <9592BB6CDB1CEB48826BE86ACD71FA996ABF75@kwik.ic.uva.nl> References: <9592BB6CDB1CEB48826BE86ACD71FA996ABF73@kwik.ic.uva.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1181507436==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5ujH-00069q-TU for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 23:41:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5ujH-00068O-0Z for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 23:41:03 -0400 Received: from [199.232.76.173] (port=42343 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5ujG-00068E-SR for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 23:41:02 -0400 Received: from kwik.ic.uva.nl ([146.50.98.168]:38326) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5ujG-0001f0-BL for emacs-orgmode@gnu.org; Mon, 09 Jun 2008 23:41:02 -0400 Content-class: urn:content-classes:message List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Dominik, C." , William Xu , emacs-orgmode@gnu.org This is a multi-part message in MIME format. --===============1181507436== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C8CAAB.CD76428E" This is a multi-part message in MIME format. ------_=_NextPart_001_01C8CAAB.CD76428E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3Dscience.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?=20 =20 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=3Dscience.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?=20 =20 Hi! Can I use non-alphabet ascii as todo keywords? Like this:=20 ,---- | (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. =20 --=20 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 ------_=_NextPart_001_01C8CAAB.CD76428E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [Orgmode] use non-alphabet ascii as todo keywords?

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=3Dscience.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=3Dscience.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


------_=_NextPart_001_01C8CAAB.CD76428E-- --===============1181507436== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1181507436==--