[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/exec-path-from-shell 18cad603c4 100/114: Mention applicabi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/exec-path-from-shell 18cad603c4 100/114: Mention applicability to running a daemon from systemd |
Date: |
Tue, 5 Sep 2023 04:00:07 -0400 (EDT) |
branch: elpa/exec-path-from-shell
commit 18cad603c45c5544e8a9666be64d0c51bbc1af90
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>
Mention applicability to running a daemon from systemd
Fixes #99
---
README.md | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 7ba024b6db..9f7acccafc 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,8 @@ Ever find that a command works in your shell, but not in
Emacs?
This happens a lot on OS X, where an Emacs instance launched as a GUI app
inherits a
default minimal set of environment variables that are probably not the ones
you see
-in a terminal window.
+in a terminal window. Similarly, if you start Emacs as a daemon from `systemd`
or `launchd`,
+it will run with a default set of environment variables.
This library solves this problem by copying important environment
variables from the user's shell: it works by asking your shell to print out the
@@ -60,6 +61,14 @@ Add the following to your `init.el` (after calling
`package-initialize`):
This sets `$MANPATH`, `$PATH` and `exec-path` from your shell, but only
when executed in a GUI frame on OS X and Linux.
+If you launch Emacs as a daemon from `systemd` or similar, you
+might like to use the following snippet:
+
+```el
+(when (daemonp)
+ (exec-path-from-shell-initialize))
+```
+
You can copy values of other environment variables by customizing
`exec-path-from-shell-variables` before invoking
`exec-path-from-shell-initialize`, or by calling
- [nongnu] elpa/exec-path-from-shell 699f41edb3 087/114: Show error if trying to run from a remote buffer, (continued)
- [nongnu] elpa/exec-path-from-shell 699f41edb3 087/114: Show error if trying to run from a remote buffer, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell e24dddb3b7 038/114: Capitalize MELPA, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 8748769a6c 042/114: Better "motivation" description, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 9bc0f4a762 085/114: Note about how best to set up shell config files, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 76fbdf5d01 092/114: Fix ignore pattern in Actions YAML, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 6124001b69 101/114: Checkdoc fixes, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4c3fbc3d7f 108/114: "docstring wider than 80 characters", ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 3a8d97c096 110/114: Show how I add NIX_PATH, SSH_AUTH_SOCK etc. to vars list, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell c2a727fe34 062/114: fix defcustom loading when env SHELL is empty, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 192c5341c5 044/114: Update MELPA URLs, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 18cad603c4 100/114: Mention applicability to running a daemon from systemd,
ELPA Syncer <=
- [nongnu] elpa/exec-path-from-shell ddd24dc823 113/114: Add Emacs 28.2 to CI, cut down size of matrix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 30df5be792 064/114: Minor README fix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 39755bf322 045/114: Use 'el' code block type rather than 'scheme', ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 0f53502d46 068/114: Produce error at runtime if SHELL is unset, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4c67a95a65 079/114: Add explicit GPL 3 license, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell f858b05cf9 083/114: Make installation instructions more explicit, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 76cd6e3fa8 086/114: Don't use -i by default with Fish (see #87), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell ddd608cd19 097/114: Enable lexical-binding, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell a45edbc2d0 105/114: Per suggestion, change only the default value of eshell-path-env, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4d6a6aa180 060/114: Correct a function name in the README, ELPA Syncer, 2023/09/05