Don't use so-long if it's been disabled
This commit is contained in:
parent
eba070d8ba
commit
bfce00d0b4
1 changed files with 2 additions and 1 deletions
|
@ -50,7 +50,8 @@ possible."
|
||||||
(prog1 (apply orig-fn args)
|
(prog1 (apply orig-fn args)
|
||||||
(if (memq major-mode doom-large-file-excluded-modes)
|
(if (memq major-mode doom-large-file-excluded-modes)
|
||||||
(setq doom-large-file-p nil)
|
(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...")))
|
(message "Large file detected! Cutting a few corners to improve performance...")))
|
||||||
(apply orig-fn args)))
|
(apply orig-fn args)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue