From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: [Patch] Org-fontify Date: Fri, 13 Aug 2010 15:37:10 -0500 Message-ID: <4C65ACF6.10706@ccbr.umn.edu> References: <87sk2iw9hx.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=34663 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ok10B-0007r8-7m for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 16:37:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ok107-0008T4-1P for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 16:37:19 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:1872) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ok106-0008Sl-RI for emacs-orgmode@gnu.org; Fri, 13 Aug 2010 16:37:15 -0400 In-Reply-To: <87sk2iw9hx.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?UTF-8?B?U8OpYmFzdGllbiBWYXViYW4=?= Cc: emacs-orgmode@gnu.org Hello! Having not tried this out, are the aims different than David O'Toole's mode-specific fontification of org-mode source blocks? http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28160.html See a picture of what he's done here: http://imagebin.ca/view/iRVK_as7.html S=C3=A9bastien Vauban wrote: > Hello, >=20 > Champagne! My very first patch... Hopefully one that will be followed = by many > more... >=20 > Goal: to *fontify whole lines* of code-block or meta-lines. >=20 > See the results on this minimal example: >=20 > --8<---------------cut here---------------start------------->8--- > #+TITLE: Better identification of source blocks and results > #+DATE: 2010-08-13 > #+DESCRIPTION:=20 > #+KEYWORDS:=20 > #+LANGUAGE: en_US >=20 > This is >=20 > #+BEGIN_SRC org > ** Totals > *** Using a table formula > #+END_SRC >=20 > random text >=20 > #+LaTeX: \thisismycommand{}{param2} >=20 > inserted between >=20 > #+begin_src R :session woodland > names(woodland) > str(woodland) > summary(woodland) > #+end_src >=20 > code blocks >=20 > #+begin_src R :session woodland > woodland > #+end_src >=20 > copy from different >=20 > #+srcname:woodland > #+begin_src R :colnames t > read.table("/tmp/woodlands.txt",header=3DTRUE) > #+end_src >=20 > #+results: woodland > | "ID" | "wood" | "A.reptans" | "E.amygdaloides" | > |------+---------+-------------+------------------| > | "a" | "wood1" | 5 | 10 | > | "b" | "wood2" | 1 | 0 | >=20 > postings on org-mode... > --8<---------------cut here---------------end--------------->8--- >=20 > with *faces with background*, such as: >=20 > --8<---------------cut here---------------start------------->8--- > (org-block ((t (:foreground "blue1" :background "#EAFFEA")))) > (org-code ((t (:foreground "blue1" :background "#EAFFEA")))) > (org-meta-line ((t (:foreground "#008ED1" :background "#FFEAEA")))= ) > (org-table ((t (:foreground "blue1" :background "#EAEAFF")))) > --8<---------------cut here---------------end--------------->8--- >=20 > Only feature: I did not succeed highlighting full lines containing =3Ds= rcname=3D > or =3Dresults=3D. Not a big deal. Though, if someone can do it, that wo= uld > definitely please me... >=20 > Best regards, > Seb >=20 >=20 >=20 > -----------------------------------------------------------------------= - >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode