* [PATCH 1/2] shr: Add support for custom bullet in unordered lists.
@ 2013-06-14 19:19 Rüdiger Sonderfeld
2013-06-16 14:19 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Rüdiger Sonderfeld @ 2013-06-14 19:19 UTC (permalink / raw)
To: ding; +Cc: larsi
* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-16 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-14 19:19 [PATCH 1/2] shr: Add support for custom bullet in unordered lists Rüdiger Sonderfeld
2013-06-16 14:19 ` Lars Magne Ingebrigtsen
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).