[gnus git] branch master updated: =1= shr: create faces for hN tags
Julien Danjou <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via ba4b37df9e723a3e7e394dce189b8269d5297bfc (commit)
from c0d3611416a2fcd137f11f7c879a6d10780353b2 (commit)
- Log -----------------------------------------------------------------
commit ba4b37df9e723a3e7e394dce189b8269d5297bfc
Author: Julien Danjou <[email protected]>
Date: Mon Jan 24 10:55:24 2011 +0100
shr: create faces for hN tags
Signed-off-by: Julien Danjou <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e03c53a..d0c848d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-01-24 Julien Danjou <[email protected]>
+
+ * shr.el: Use defface to create shr-tag-h[1-6] faces to fontify h[1-6]
+ tags.
+
2011-01-24 Lars Ingebrigtsen <[email protected]>
* gnus-art.el (gnus-article-read-summary-keys): Don't call disabled
diff --git a/lisp/shr.el b/lisp/shr.el
index 75929b2..174b1ff 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -82,6 +82,30 @@ used."
(const :tag "Use the width of the window" nil))
:group 'shr)
+(defface shr-tag-h1 '((t (:bold t :height 2.2)))
+ "Face used for H1 tags."
+ :group 'shr)
+
+(defface shr-tag-h2 '((t (:bold t :height 2.0)))
+ "Face used for H2 tags."
+ :group 'shr)
+
+(defface shr-tag-h3 '((t (:bold t :height 1.8)))
+ "Face used for H3 tags."
+ :group 'shr)
+
+(defface shr-tag-h4 '((t (:bold t :height 1.6)))
+ "Face used for H4 tags."
+ :group 'shr)
+
+(defface shr-tag-h5 '((t (:bold t :height 1.4)))
+ "Face used for H5 tags."
+ :group 'shr)
+
+(defface shr-tag-h6 '((t (:bold t :height 1.2)))
+ "Face used for H6 tags."
+ :group 'shr)
+
(defvar shr-content-function nil
"If bound, this should be a function that will return the content.
This is used for cid: URLs, and the function is called with the
@@ -832,22 +856,22 @@ ones, in case fg and bg are nil."
(shr-generic cont))
(defun shr-tag-h1 (cont)
- (shr-heading cont 'bold 'underline))
+ (shr-heading cont 'shr-tag-h1))
(defun shr-tag-h2 (cont)
- (shr-heading cont 'bold))
+ (shr-heading cont 'shr-tag-h2))
(defun shr-tag-h3 (cont)
- (shr-heading cont 'italic))
+ (shr-heading cont 'shr-tag-h3))
(defun shr-tag-h4 (cont)
- (shr-heading cont))
+ (shr-heading cont 'shr-tag-h4))
(defun shr-tag-h5 (cont)
- (shr-heading cont))
+ (shr-heading cont 'shr-tag-h5))
(defun shr-tag-h6 (cont)
- (shr-heading cont))
+ (shr-heading cont 'shr-tag-h6))
(defun shr-tag-hr (cont)
(shr-ensure-newline)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/shr.el | 36 ++++++++++++++++++++++++++++++------
2 files changed, 35 insertions(+), 6 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project