Re: [O] problem with utf8 todo keywords
Hi Carsten, Carsten Dominik writes: > 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? Added -- the section is "Can I use a arbitrary character in a TODO keyword?" Thanks for the tip, -- Bastien
Re: [O] problem with utf8 todo keywords
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
Re: [O] problem with utf8 todo keywords
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 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 >
[O] problem with utf8 todo keywords
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