General, minor refactor & revision

Across the board. All the boards.
This commit is contained in:
Henrik Lissner 2018-06-16 12:26:58 +02:00
parent 02caf4eeac
commit 44363cae40
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
8 changed files with 12 additions and 14 deletions

View file

@ -51,7 +51,7 @@ for confirmation to open it literally (read-only, disabled undo and in
fundamental-mode) for performance sake."
(when (and (not (memq major-mode doom-large-file-modes-list))
auto-mode-alist
(get-buffer-window (current-buffer)))
(get-buffer-window))
(when-let* ((size (nth 7 (file-attributes buffer-file-name))))
(when (and (> size (* 1024 1024 doom-large-file-size))
(y-or-n-p