Fix wrong-type-argument when opening file that doesn't exist yet

This commit is contained in:
Henrik Lissner 2019-12-25 14:01:46 -05:00
parent e35a5ee933
commit 606d53cc47
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -42,6 +42,7 @@ possible."
(if (setq doom-large-file-p
(and buffer-file-name
(not doom-large-file-p)
(file-exists-p buffer-file-name)
(> (nth 7 (file-attributes buffer-file-name))
(* 1024 1024
(assoc-default buffer-file-name doom-large-file-size-alist