From 2e14b4a88ce09bfe5526b883b638b4920955a9b2 Mon Sep 17 00:00:00 2001 From: Alexander Miller Date: Wed, 12 Jun 2019 17:10:01 +0200 Subject: [PATCH] Don't use large file check in buffers already in fundamental-mode. This change will prevent unnecessary requests to literally open files that are literal already (like elfeed's index file). --- CHANGELOG.develop | 2 ++ layers/+spacemacs/spacemacs-defaults/funcs.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.develop b/CHANGELOG.develop index 98e400868..4d2703166 100644 --- a/CHANGELOG.develop +++ b/CHANGELOG.develop @@ -1000,6 +1000,8 @@ Other: - Key bindings (thanks to bb2020) - ~SPC-j-C~ to =check-parens= - ~SPC-,~ to =goto-last-change= + - Excluded =fundamental-mode= from =spacemacs/check-large-file= + (thanks to Alexander Miller) *** Layer changes and fixes **** Alda - Key bindings: diff --git a/layers/+spacemacs/spacemacs-defaults/funcs.el b/layers/+spacemacs/spacemacs-defaults/funcs.el index 750e48fcc..15dd78dae 100644 --- a/layers/+spacemacs/spacemacs-defaults/funcs.el +++ b/layers/+spacemacs/spacemacs-defaults/funcs.el @@ -89,7 +89,7 @@ Only modes that don't derive from `prog-mode' should be listed here." (defcustom spacemacs-large-file-modes-list '(archive-mode tar-mode jka-compr git-commit-mode image-mode doc-view-mode doc-view-mode-maybe ebrowse-tree-mode - pdf-view-mode) + pdf-view-mode fundamental-mode) "Major modes which `spacemacs/check-large-file' will not be automatically applied to." :group 'spacemacs