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: Xebar Saram
Subject: Re: [O] custom emacs org-emphasis-alist breaks EXPORT, help ;-) ?
Date: Fri, 4 Oct 2013 11:23:55 +0300

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


On Fri, Oct 4, 2013 at 11:02 AM, Bastien <address@hidden> wrote:
Xebar Saram <address@hidden> writes:

> as you said i just want to highlight (BG/FG) specific areas/lines.
> any help would be greatly appreciated!

E.g. you can do this to highlight ♩ with '(:weight
ultra-bold :background "#FFBF1E") :

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

"♩" is actually a regular _expression_, so you can use [♩©] to highlight
both ♩ and ©.

0 means to highlight the entire matching text.

HTH,

--
 Bastien


reply via email to

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