emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: Fontification of blocks


From: Eric Schulte
Subject: Re: [Orgmode] Re: Fontification of blocks
Date: Fri, 04 Feb 2011 13:50:57 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Seb,

This looks very nice, I am now able to turn fontification on and off as
expected using your three new faces.  I've just committed your patch
with one minor change (not having the block background face set by
default).

Maybe it would be worth a worg post about how to use these faces with
some example settings...

Thanks -- Eric

Sébastien Vauban <address@hidden> writes:

> 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



reply via email to

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