Skip to content

Commit

Permalink
Defer loading so-long until needed
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 1, 2024
1 parent 802b3ff commit 36dff2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guard-lf.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@

;;; Code:

(require 'so-long)

(defgroup guard-lf nil
"Guard large files."
:prefix "guard-lf-"
Expand Down Expand Up @@ -88,6 +86,7 @@

(defun guard-lf--line-too-long-p (buffer)
"Return non-nil if BUFFER's line is too long."
(require 'so-long)
(save-excursion
(with-current-buffer buffer
(funcall so-long-predicate))))
Expand Down

0 comments on commit 36dff2f

Please sign in to comment.