From 5ccbc468ad4862dbace4b275fa3ea0d2a0c55332 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Nov 2020 15:41:46 -0500 Subject: [PATCH] lang/web: fix fill-prefix on continued comments Before: /* * pretend this is a line longer than 80 characters */ Call fill-paragraph: /* * pretend this is a line longer than 80 characters */ After /* * pretend this is a line longer than 80 characters */ Call fill-paragraph: /* * pretend this is a line longer * than 80 characters */ --- modules/lang/web/+css.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/web/+css.el b/modules/lang/web/+css.el index c386e7658..3d64cd092 100644 --- a/modules/lang/web/+css.el +++ b/modules/lang/web/+css.el @@ -24,7 +24,9 @@ If set to `nil', disable all the above behaviors.") ;; Correctly continue /* and // comments on newline-and-indent comment-line-break-function #'+css/comment-indent-new-line ;; Fix `fill-paragraph' not conjoining line comments in CSS modes correctly. - adaptive-fill-function #'+css-adaptive-fill-fn) + adaptive-fill-function #'+css-adaptive-fill-fn + ;; Fix filled lines not being auto-prefixed with a * when needed. + adaptive-fill-first-line-regexp "\\'[ \t]*\\(?:\\* *\\)?\\'") (after! (:any css-mode sass-mode) (set-docsets! '(css-mode scss-mode sass-mode)