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 */
This commit is contained in:
parent
5c06edd90a
commit
5ccbc468ad
1 changed files with 3 additions and 1 deletions
|
@ -24,7 +24,9 @@ If set to `nil', disable all the above behaviors.")
|
||||||
;; Correctly continue /* and // comments on newline-and-indent
|
;; Correctly continue /* and // comments on newline-and-indent
|
||||||
comment-line-break-function #'+css/comment-indent-new-line
|
comment-line-break-function #'+css/comment-indent-new-line
|
||||||
;; Fix `fill-paragraph' not conjoining line comments in CSS modes correctly.
|
;; 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)
|
(after! (:any css-mode sass-mode)
|
||||||
(set-docsets! '(css-mode scss-mode sass-mode)
|
(set-docsets! '(css-mode scss-mode sass-mode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue