Fix wrong-type-argument when opening file that doesn't exist yet
This commit is contained in:
parent
e35a5ee933
commit
606d53cc47
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ possible."
|
||||||
(if (setq doom-large-file-p
|
(if (setq doom-large-file-p
|
||||||
(and buffer-file-name
|
(and buffer-file-name
|
||||||
(not doom-large-file-p)
|
(not doom-large-file-p)
|
||||||
|
(file-exists-p buffer-file-name)
|
||||||
(> (nth 7 (file-attributes buffer-file-name))
|
(> (nth 7 (file-attributes buffer-file-name))
|
||||||
(* 1024 1024
|
(* 1024 1024
|
||||||
(assoc-default buffer-file-name doom-large-file-size-alist
|
(assoc-default buffer-file-name doom-large-file-size-alist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue