From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: custom emacs org-emphasis-alist breaks EXPORT, help ;-) ? Date: Fri, 04 Oct 2013 17:15:43 +0800 Message-ID: <878uy99z28.fsf@ericabrahamsen.net> References: <87r4c1mrh1.fsf@bzg.ath.cx> <87d2nlzcoo.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1TT-0005Z6-04 for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 05:15:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VS1TL-0002Hk-GH for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 05:15:02 -0400 Received: from plane.gmane.org ([80.91.229.3]:56287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VS1TL-0002HV-9h for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 05:14:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VS1TG-0007uf-VN for emacs-orgmode@gnu.org; Fri, 04 Oct 2013 11:14:50 +0200 Received: from 221.220.65.30 ([221.220.65.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 11:14:50 +0200 Received: from eric by 221.220.65.30 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Oct 2013 11:14:50 +0200 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: emacs-orgmode@gnu.org Xebar Saram 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