* problem with utf8 todo keywords
@ 2011-06-11 18:56 harven
2011-06-13 21:23 ` Darlan Cavalcante Moreira
2011-06-15 6:47 ` Carsten Dominik
0 siblings, 2 replies; 4+ messages in thread
From: harven @ 2011-06-11 18:56 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I use emacs 23.2.1 together with org 6.33.
I am trying to add the character ▶ as a todo keyword with no success.
Starting with emacs -Q, I execute the following
code in the scratch buffer
(setq org-todo-keywords
'((sequence "\u25b6" "ok")
(sequence "\u25b8" "ok")))
Then I open a simple .org file containing
* ▶ first
* ▸ second
Only the second keyword is highlighted.
Why is it not the case with the first keyword ?
Thanks,
--
Harven
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with utf8 todo keywords
2011-06-11 18:56 problem with utf8 todo keywords harven
@ 2011-06-13 21:23 ` Darlan Cavalcante Moreira
2011-06-15 6:47 ` Carsten Dominik
1 sibling, 0 replies; 4+ messages in thread
From: Darlan Cavalcante Moreira @ 2011-06-13 21:23 UTC (permalink / raw)
To: harven; +Cc: emacs-orgmode
This does not answer your question, but I remember a long time ago I saw
some screen-shots of org-mode where some keywords were changed to icons
(png images, I think). The screen-shots were pretty, but I don't know if
the project was further developed or not.
Here a thread about it
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg14736.html
--
Darlan Cavalcante
At Sat, 11 Jun 2011 20:56:46 +0200,
harven <harven@free.fr> wrote:
>
> Hi,
>
> I use emacs 23.2.1 together with org 6.33.
> I am trying to add the character ▶ as a todo keyword with no success.
>
> Starting with emacs -Q, I execute the following
> code in the scratch buffer
> (setq org-todo-keywords
> '((sequence "\u25b6" "ok")
> (sequence "\u25b8" "ok")))
> Then I open a simple .org file containing
>
> * ▶ first
> * ▸ second
>
> Only the second keyword is highlighted.
> Why is it not the case with the first keyword ?
>
> Thanks,
> --
> Harven
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: problem with utf8 todo keywords
2011-06-11 18:56 problem with utf8 todo keywords harven
2011-06-13 21:23 ` Darlan Cavalcante Moreira
@ 2011-06-15 6:47 ` Carsten Dominik
2011-07-02 9:45 ` Bastien
1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2011-06-15 6:47 UTC (permalink / raw)
To: harven, Matt Lundin; +Cc: emacs-orgmode mailing list
On 11.6.2011, at 20:56, harven wrote:
> Hi,
>
> I use emacs 23.2.1 together with org 6.33.
> I am trying to add the character ▶ as a todo keyword with no success.
>
> Starting with emacs -Q, I execute the following
> code in the scratch buffer
> (setq org-todo-keywords
> '((sequence "\u25b6" "ok")
> (sequence "\u25b8" "ok")))
> Then I open a simple .org file containing
>
> * ▶ first
> * ▸ second
>
> Only the second keyword is highlighted.
> Why is it not the case with the first keyword ?
Most likely this is because the second character has
syntax "word", while the first does not. The regular expression
matching TODO words for font-lock expects the TODO keyword
to have word syntax (at least the first and last character of it).
Try this:
(add-hook 'org-mode-hook
(lambda ()
(modify-syntax-entry (string-to-char "\u25b6") "w")
(modify-syntax-entry (string-to-char "\u25b8") "w")))
Matt, maybe this information could go into the FAQ?
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-02 9:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-11 18:56 problem with utf8 todo keywords harven
2011-06-13 21:23 ` Darlan Cavalcante Moreira
2011-06-15 6:47 ` Carsten Dominik
2011-07-02 9:45 ` Bastien
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).