emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Fontification of blocks


From: Sébastien Vauban
Subject: [Orgmode] Re: Fontification of blocks
Date: Fri, 04 Feb 2011 10:21:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi,

As spotted by Eric Fraga:

Sébastien Vauban wrote:
> --- a/lisp/org-faces.el
> +++ b/lisp/org-faces.el
> @@ -1,6 +1,6 @@
>  ;;; org-faces.el --- Face definitions for Org-mode.
>  
> -;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010
> +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
>  ;;   Free Software Foundation, Inc.
>  
>  ;; Author: Carsten Dominik <carsten at orgmode dot org>
> @@ -511,6 +511,16 @@ follows a #+DATE:, #+AUTHOR: or #+EMAIL: keyword."
>    :group 'org-faces
>    :version "22.1")
>  
> +(defface org-block-background
> +  '((t (:background "#FFFFEA")))
> +  "Face used for the source block background.")
> +
> +(org-copy-face 'org-meta-line 'org-block-begin-line
> +  "Face used for the line delimiting the begin of source blocks.")
> +
> +(org-copy-face 'org-meta-line 'org-block-begin-line
> +  "Face used for the line delimiting the end of source blocks.")
> +
>  (defface org-verbatim
>    (org-compatible-face 'shadow
>      '((((class color grayscale) (min-colors 88) (background light))

you should read the following at the 2nd =org-copy-face= command:

> +(org-copy-face 'org-meta-line 'org-block-end-line
> +  "Face used for the line delimiting the end of source blocks.")

ie, s/begin/end/

I guess it worked for me (I restarted completely Emacs for the test), as that
face is defined in my color-theme now. So, it was created anyway.

Corrected patch is attached to this post.

Best regards,
  Seb

-- 
Sébastien Vauban

Attachment: 0001.patch
Description: Text Data


reply via email to

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