[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/exec-path-from-shell 96ef5e6093 008/114: Add a readme
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/exec-path-from-shell 96ef5e6093 008/114: Add a readme |
Date: |
Tue, 5 Sep 2023 03:59:56 -0400 (EDT) |
branch: elpa/exec-path-from-shell
commit 96ef5e609367bec614fb564d5b856df7904133ed
Author: Sebastian Wiesner <lunaryorn@gmail.com>
Commit: Sebastian Wiesner <lunaryorn@gmail.com>
Add a readme
---
README.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..500151c589
--- /dev/null
+++ b/README.md
@@ -0,0 +1,67 @@
+exec-path-from-shell
+=====================
+
+A GNU Emacs library to setup environment variables from the user's shell.
+
+Motivation
+----------
+
+On OS X, an Emacs instance started from the graphical user interface will have
a
+different environment than a shell in a terminal window, because OS X does not
+run a shell during the login. Obviously this will lead to unexpected results
+when calling external utilities like `make` from Emacs.
+
+This library intends to work around this problem by copying important
+environment variables from the user's shell.
+
+Installation
+------------
+
+ELPA packages are available on Marmalade and MELPA. Alternatively,
[download][]
+the latest release or clone the repository, and install
+`exec-path-from-shell.el` with `M-x package-install-from-file`.
+
+Usage
+-----
+
+Add the following to your `init.el`:
+
+```scheme
+(when (memq window-system '(mac ns))
+ (exec-path-from-shell-initialize))
+```
+
+This sets `$MANPATH`, `$PATH` and `exec-path` from your shell, but only on OS
X.
+
+You can copy values of other environment variables with
+`exec-path-from-shell-copy-env`, e.g.:
+
+```scheme
+(exec-path-from-shell-copy-env "PYTHONPATH")
+```
+
+This function may also be called interactively.
+
+Further help
+------------
+
+* `C-h f exec-path-from-shell-initialize`
+* `C-h f exec-path-from-shell-copy-env`
+
+License
+-------
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
+Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+[download]: https://github.com/purcell/exec-path-from-shell/tags
- [nongnu] branch elpa/exec-path-from-shell created (now 03fc0a38af), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell fead3d5360 002/114: Add autoload cookies, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 96ef5e6093 008/114: Add a readme,
ELPA Syncer <=
- [nongnu] elpa/exec-path-from-shell 0b59ea733b 012/114: Also set eshell-path-env when setting exec-path from $PATH, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 148145ff45 014/114: Force use of -e with built-in echo, which is not default in bash, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4223b12cf9 004/114: Extract PATH via marker, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 2ae5088c21 015/114: Use printf instead of echo (thanks @bradleywright), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell de589a96ba 017/114: Use parse-colon-path to split $PATH, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 183385ab94 016/114: Set checkdoc-minor-mode in local vars without using exec, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 8ec1a90951 019/114: Fully escape interspersed null characters too (see #5), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell f8e39d754c 023/114: Tidier code for double-quoting printf args, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 54f272f46e 024/114: Better docstrings, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell ab268a035a 026/114: Use the system-wide printf binary (if available) instead of shell built-in, ELPA Syncer, 2023/09/05