[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] problem with utf8 todo keywords
From: |
Carsten Dominik |
Subject: |
Re: [O] problem with utf8 todo keywords |
Date: |
Wed, 15 Jun 2011 08:47:47 +0200 |
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