lang/web: fix comments not joining/filling correctly

Before, joining these two lines

  // hello
  // world

Results in

  // hello // world

And filling the following

  // Pretend this line is longer than 80 characters

Becomes

  // Pretend this lineis longer than
  80 characters
This commit is contained in:
Henrik Lissner
2020-11-08 20:02:16 -05:00
parent b96b6ed64e
commit 5c06edd90a
2 changed files with 14 additions and 1 deletions

View File

@ -22,7 +22,9 @@ If set to `nil', disable all the above behaviors.")
(setq-hook! 'css-mode-hook
;; 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.
adaptive-fill-function #'+css-adaptive-fill-fn)
(after! (:any css-mode sass-mode)
(set-docsets! '(css-mode scss-mode sass-mode)