Don't use so-long if it's been disabled

This commit is contained in:
Henrik Lissner 2019-12-30 05:27:25 -05:00
parent eba070d8ba
commit bfce00d0b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -50,7 +50,8 @@ possible."
(prog1 (apply orig-fn args)
(if (memq major-mode doom-large-file-excluded-modes)
(setq doom-large-file-p nil)
(so-long-minor-mode +1)
(when (fboundp 'so-long-minor-mode) ; in case the user disabled it
(so-long-minor-mode +1))
(message "Large file detected! Cutting a few corners to improve performance...")))
(apply orig-fn args)))