Comment revision
This commit is contained in:
parent
49f3bc193a
commit
9490d42cd3
4 changed files with 6 additions and 6 deletions
|
@ -573,11 +573,11 @@ on."
|
|||
highlight-indent-guides-mode
|
||||
hl-fill-column-mode))
|
||||
(defun doom-buffer-has-long-lines-p ()
|
||||
;; HACK Fix #2183: `so-long-detected-long-line-p' tries to parse comment
|
||||
;; syntax, but in some buffers comment state isn't initialized, leading
|
||||
;; to a wrong-type-argument: stringp error.
|
||||
(unless (bound-and-true-p visual-line-mode)
|
||||
(let ((so-long-skip-leading-comments
|
||||
;; HACK Fix #2183: `so-long-detected-long-line-p' tries to parse
|
||||
;; comment syntax, but comment state may not be initialized,
|
||||
;; leading to a wrong-type-argument: stringp error.
|
||||
(bound-and-true-p comment-use-syntax)))
|
||||
(so-long-detected-long-line-p))))
|
||||
(setq so-long-predicate #'doom-buffer-has-long-lines-p))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue