mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-09 12:57:25 -05:00
Trigger so-long even in modes with no comment syntax
Refactoring of #2183
This commit is contained in:
@ -511,7 +511,7 @@ files, so we replace calls to `pp' with the much faster `prin1'."
|
||||
;; syntax, but in some buffers comment state isn't initialized, leading
|
||||
;; to a wrong-type-argument: stringp error.
|
||||
(defun doom-buffer-has-long-lines-p ()
|
||||
(when (bound-and-true-p comment-use-syntax)
|
||||
(let ((so-long-skip-leading-comments (bound-and-true-p comment-use-syntax)))
|
||||
(so-long-detected-long-line-p)))
|
||||
(setq so-long-predicate #'doom-buffer-has-long-lines-p))
|
||||
|
||||
|
Reference in New Issue
Block a user