From 10fa241442b70ae50e73f747daa4751aced1db6d Mon Sep 17 00:00:00 2001 Message-Id: <10fa241442b70ae50e73f747daa4751aced1db6d.1717793161.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 21 Apr 2008 12:03:49 +0100 Subject: [PATCH] dot-emacs: Update mdw-hanging-indents for Doxygen-style lists. Organization: Straylight/Edgeware From: Mark Wooding Doxygen uses a leading `-' or `-#' for unordered or ordered lists respectively. Supporting this will probably interfere with poorly wrapped inline mathematics, but that's probably OK. We'll see... --- dot-emacs.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dot-emacs.el b/dot-emacs.el index cb2047d..d123512 100644 --- a/dot-emacs.el +++ b/dot-emacs.el @@ -426,7 +426,10 @@ (defvar mdw-fill-prefix nil (make-variable-buffer-local 'mdw-fill-prefix) (defvar mdw-hanging-indents - "\\(\\(\\([*o]\\|--\\|[0-9]+\\.\\|\\[[0-9]+\\]\\|([a-zA-Z])\\)[ \t]+\\)?\\)" + (concat "\\(\\(" + "\\([*o]\\|-[-#]?\\|[0-9]+\\.\\|\\[[0-9]+\\]\\|([a-zA-Z])\\)" + "[ \t]+" + "\\)?\\)") "*Standard regular expression matching things which might be part of a hanging indent. This is mainly useful in `auto-fill-mode'.") -- [mdw]