branch: elpa/exec-path-from-shell
commit 3a8d97c096c2c5714b667130fd8a80d5622ee067
Author: Steve Purcell <[email protected]>
Commit: GitHub <[email protected]>
Show how I add NIX_PATH, SSH_AUTH_SOCK etc. to vars list
---
README.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/README.md b/README.md
index a50fc66cc2..aa2e3fcf63 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,13 @@ You can copy values of other environment variables by
customizing
This function may also be called interactively.
+The author uses the following configuration snippet before calling
`exec-path-from-shell-initialize`:
+
+```el
+(dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG"
"LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH"))
+ (add-to-list 'exec-path-from-shell-variables var))
+```
+
### Setting up your shell startup files correctly
Note that your shell will inherit Emacs's environment variables when