From: Mark Wooding Date: Mon, 21 Apr 2008 11:03:49 +0000 (+0100) Subject: dot-emacs: Update mdw-hanging-indents for Doxygen-style lists. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/10fa241442b70ae50e73f747daa4751aced1db6d?ds=sidebyside dot-emacs: Update mdw-hanging-indents for Doxygen-style lists. 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... --- 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 @@ a list of things: (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'.")