From 2519d12ae31eddf9407f8c1a4e713b055fe67dd1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 3 Nov 2019 13:06:44 -0500 Subject: [PATCH] Don't trigger so-long in noninteractive sessions --- core/core-editor.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-editor.el b/core/core-editor.el index b871c2934..f12d7f9ae 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -470,7 +470,8 @@ files, so we replace calls to `pp' with the much faster `prin1'." (use-package! so-long :after-call after-find-file :config - (global-so-long-mode +1) + (when doom-interactive-mode + (global-so-long-mode +1)) ;; Don't disable syntax highlighting and line numbers, or make the buffer ;; read-only, in `so-long-minor-mode', so we can have a basic editing ;; experience in them, at least. It will remain off in `so-long-mode',