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).
This commit is contained in:
Alexander Miller 2019-06-12 17:10:01 +02:00 committed by duianto
parent 47f83609d5
commit 2e14b4a88c
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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