I wanted to load some files from a shell environment variable. Can we check an environment variable in .emacs?
Yes, use the getenv
function, e.g. (getenv "my-var")
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With