]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: update coolj-line-prefix-regexp to make space optional
authorDavid Bremner <david@tethera.net>
Sat, 25 Dec 2021 23:31:12 +0000 (19:31 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 29 Dec 2021 18:24:21 +0000 (14:24 -0400)
Jani reported that lines prefixed with '>' (as opposed to '> ') are
not highlighted properly [1]. David E responded with a updated regex
[2]. This change implements David E's suggestion.

[1]: id:87a8b5pcky.fsf@nikula.org
[2]: id:m2pok1e3gv.fsf@dme.org

emacs/coolj.el

index d820525b3f0240a3afe0e41a5faa82b85cd16cd2..79d2a1b7f03db509b95705b1701fa601cf7987ca 100644 (file)
@@ -45,7 +45,7 @@ Otherwise respect `fill-column'."
   :group 'coolj
   :type 'boolean)
 
-(defcustom coolj-line-prefix-regexp "^\\(>+ \\)*"
+(defcustom coolj-line-prefix-regexp "^\\(>+ ?\\)*"
   "Regular expression that matches line prefixes."
   :group 'coolj
   :type 'regexp)