From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: custom emacs org-emphasis-alist breaks EXPORT, help ;-) ? Date: Fri, 4 Oct 2013 11:23:55 +0300 Message-ID: References: <87r4c1mrh1.fsf@bzg.ath.cx> <87d2nlzcoo.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=485b393ab689f695ad04e7e6054e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS0g2-0004Pz-8R for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 04:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS0g0-0003em-Sj for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 04:23:58 -0400 In-Reply-To: <87d2nlzcoo.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: org mode --485b393ab689f695ad04e7e6054e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thank you again that works well but i think it dosent cover what i had in org. in org i use the =E2=99=A9 symbol to highlight all the text between the 2 =E2=99=A9, IE =E2=99=A9ALL THIS TEXT IS HIGHLIGHTED=E2=99=A9, currently with the above co= de the =E2=99=A9 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 wrote: > Xebar Saram 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 =E2=99=A9 with '(:weight > ultra-bold :background "#FFBF1E") : > > (font-lock-add-keywords > 'org-mode > '(("=E2=99=A9" (0 '(:weight ultra-bold :background "#FFBF1E") t)))) > > "=E2=99=A9" is actually a regular expression, so you can use [=E2=99=A9= =C2=A9] to highlight > both =E2=99=A9 and =C2=A9. > > 0 means to highlight the entire matching text. > > HTH, > > -- > Bastien > --485b393ab689f695ad04e7e6054e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thank you again

that works well but i t= hink it dosent cover what i had in org. in org i use the=C2=A0=E2=99=A9 = symbol to highlight all the text between the 2=C2=A0=E2=99=A9, IE

=E2=99=A9ALL THIS TEXT IS HIGHLIGHTED= =E2=99=A9, currently with the above code the=C2=A0=E2=99=A9 is high= lighted but not the text between, is it possible to do achive that with fon= t-lock?

<= span style=3D"font-size:11.199999809265137px">i really=C2=A0appreciate=C2= =A0your help!

z


On Fri, Oct 4, 2013 at 11:02 AM, Bastien= <bzg= @gnu.org> wrote:
Xebar Saram <zelt= akc@gmail.com> 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 =E2=99=A9 with '(:weight
ultra-bold :background "#FFBF1E") :

(font-lock-add-keywords
=C2=A0'org-mode
=C2=A0'(("=E2=99=A9" (0 '(:weight ultra-bold :background = "#FFBF1E") t))))

"=E2=99=A9" is actually a regular expression, so you can use [=E2= =99=A9=C2=A9] to highlight
both =E2=99=A9 and =C2=A9.

0 means to highlight the entire matching text.

HTH,

--
=C2=A0Bastien

--485b393ab689f695ad04e7e6054e--