Soften formatting rules for envvar files
doom-load-envvar-file would fail if there weren't two newlines indicating "the start of the envvar list", or if envvars were commented out/were padded with whitespace. These rules have been relaxed.
This commit is contained in:
parent
975928193b
commit
cbe05e6df4
1 changed files with 1 additions and 2 deletions
|
@ -424,8 +424,7 @@ in interactive sessions, nil otherwise (but logs a warning)."
|
||||||
(let (vars)
|
(let (vars)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert-file-contents file)
|
(insert-file-contents file)
|
||||||
(search-forward "\n\n")
|
(while (re-search-forward "\n *[^#] *\\([^= \n]+\\)=" nil t)
|
||||||
(while (re-search-forward "\n\\([^= \n]+\\)=" nil t)
|
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(let ((var (match-string 1))
|
(let ((var (match-string 1))
|
||||||
(value (buffer-substring-no-properties
|
(value (buffer-substring-no-properties
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue