Gnus development mailing list
 help / color / mirror / Atom feed
From: "Rüdiger Sonderfeld" <ruediger@c-plusplus.de>
To: ding@gnus.org
Cc: larsi@gnus.org
Subject: [PATCH 1/2] shr: Add support for custom bullet in unordered lists.
Date: Fri, 14 Jun 2013 21:19:35 +0200	[thread overview]
Message-ID: <2586612.Gclln5ticU@descartes> (raw)

* lisp/shr.el (shr-bullet): New custom variable.
  (shr-tag-li): Support custom bullet in unordered lists.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
---
 lisp/shr.el | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lisp/shr.el b/lisp/shr.el
index c93357e..48dfc5a 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -83,6 +83,14 @@ (defcustom shr-width fill-column
 		 (const   :tag "Use the width of the window" nil))
   :group 'shr)
 
+(defcustom shr-bullet "* "
+  "Bullet used for unordered lists.
+Alternative suggestions are:
+- \"◉ \"
+- \"• \""
+  :type 'string
+  :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
@@ -1094,7 +1102,7 @@ (defun shr-tag-li (cont)
 	      (prog1
 		  (format "%d " shr-list-mode)
 		(setq shr-list-mode (1+ shr-list-mode)))
-	    "* "))
+	    shr-bullet))
 	 (shr-indentation (+ shr-indentation (length bullet))))
     (insert bullet)
     (shr-generic cont)))
-- 
1.8.3.1





             reply	other threads:[~2013-06-14 19:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-14 19:19 Rüdiger Sonderfeld [this message]
2013-06-16 14:19 ` Lars Magne Ingebrigtsen

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2586612.Gclln5ticU@descartes \
    --to=ruediger@c-plusplus.de \
    --cc=ding@gnus.org \
    --cc=larsi@gnus.org \
    /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.
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 NNTP newsgroup(s).