mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't read envvar literally at startup #1549
This commit is contained in:
@ -432,7 +432,7 @@ in interactive sessions, nil otherwise (but logs a warning)."
|
|||||||
(if (not (file-readable-p file))
|
(if (not (file-readable-p file))
|
||||||
(doom-log "Couldn't read %S envvar file" file)
|
(doom-log "Couldn't read %S envvar file" file)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents-literally file)
|
(insert-file-contents file)
|
||||||
(search-forward "\n\n" nil t)
|
(search-forward "\n\n" nil t)
|
||||||
(while (re-search-forward "\n\\([^= \n]+\\)=" nil t)
|
(while (re-search-forward "\n\\([^= \n]+\\)=" nil t)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
|
Reference in New Issue
Block a user