From: Erik Iverson <eriki@ccbr.umn.edu>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Patch] Org-fontify
Date: Fri, 13 Aug 2010 15:37:10 -0500 [thread overview]
Message-ID: <4C65ACF6.10706@ccbr.umn.edu> (raw)
In-Reply-To: <87sk2iw9hx.fsf@mundaneum.com>
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ébastien Vauban wrote:
> Hello,
>
> Champagne! My very first patch... Hopefully one that will be followed by many
> more...
>
> Goal: to *fontify whole lines* of code-block or meta-lines.
>
> See the results on this minimal example:
>
> --8<---------------cut here---------------start------------->8---
> #+TITLE: Better identification of source blocks and results
> #+DATE: 2010-08-13
> #+DESCRIPTION:
> #+KEYWORDS:
> #+LANGUAGE: en_US
>
> This is
>
> #+BEGIN_SRC org
> ** Totals
> *** Using a table formula
> #+END_SRC
>
> random text
>
> #+LaTeX: \thisismycommand{}{param2}
>
> inserted between
>
> #+begin_src R :session woodland
> names(woodland)
> str(woodland)
> summary(woodland)
> #+end_src
>
> code blocks
>
> #+begin_src R :session woodland
> woodland
> #+end_src
>
> copy from different
>
> #+srcname:woodland
> #+begin_src R :colnames t
> read.table("/tmp/woodlands.txt",header=TRUE)
> #+end_src
>
> #+results: woodland
> | "ID" | "wood" | "A.reptans" | "E.amygdaloides" |
> |------+---------+-------------+------------------|
> | "a" | "wood1" | 5 | 10 |
> | "b" | "wood2" | 1 | 0 |
>
> postings on org-mode...
> --8<---------------cut here---------------end--------------->8---
>
> with *faces with background*, such as:
>
> --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---
>
> Only feature: I did not succeed highlighting full lines containing =srcname=
> or =results=. Not a big deal. Though, if someone can do it, that would
> definitely please me...
>
> Best regards,
> Seb
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2010-08-13 20:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-13 20:19 [Patch] Org-fontify Sébastien Vauban
2010-08-13 20:37 ` Erik Iverson [this message]
2010-08-13 21:52 ` Sébastien Vauban
2010-08-14 21:04 ` Sébastien Vauban
2010-08-15 7:30 ` Carsten Dominik
2010-08-17 14:07 ` Sébastien Vauban
2010-08-17 14:23 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C65ACF6.10706@ccbr.umn.edu \
--to=eriki@ccbr.umn.edu \
--cc=emacs-orgmode@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).