emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?


From: Eric Abrahamsen
Subject: Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Date: Fri, 04 Oct 2013 17:15:43 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Xebar Saram <address@hidden> writes:

> Thank you again
>
> that works well but i think it dosent cover what i had in org. in org
> i use the ♩ symbol to highlight all the text between the 2 ♩, IE
>
> ♩ALL THIS TEXT IS HIGHLIGHTED♩, currently with the above code the ♩
> is highlighted but not the text between, is it possible to do achive
> that with font-lock?
>
> i really appreciate your help!
>
> z

Yup, it's pretty much the exact same thing, just with a different
regexp.

(font-lock-add-keywords
 'org-mode
 '(("\\(♩[^♩]+♩\\)" (0 '(:weight ultra-bold :background "#FFBF1E") t))))

You can use "♩\\([^♩]+\\)♩" instead, if you only want the text between
the symbols to be highlighted.

It might be a good idea to somehow limit the number of newlines that
the regexp can match, I'm not sure.

Yours,
Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]