[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-env 5f4e2258ff 04/12: Add buffer-env-reset
From: |
ELPA Syncer |
Subject: |
[elpa] externals/buffer-env 5f4e2258ff 04/12: Add buffer-env-reset |
Date: |
Mon, 28 Feb 2022 15:57:26 -0500 (EST) |
branch: externals/buffer-env
commit 5f4e2258ffb7f8176fae1dc8d1a6c8e3ae0aab13
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Add buffer-env-reset
---
buffer-env.el | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/buffer-env.el b/buffer-env.el
index 1e2228f82c..b84bdac59f 100644
--- a/buffer-env.el
+++ b/buffer-env.el
@@ -35,7 +35,8 @@
;; direnv and it's not possible to use direnv-specific features in the
;; .envrc scripts. On the plus side, it's possible to configure the
;; package to support other environment setup methods, such as .env
-;; files or Python virtualenvs.
+;; files or Python virtualenvs. The package Readme includes some
+;; examples.
;; The usual way to activate this package is by including the
;; following in your init file:
@@ -162,5 +163,12 @@ When called interactively, ask for a FILE."
(buffer-name)
file)))
+;;;###autoload
+(defun buffer-env-reset ()
+ "Reset this buffer's process environment to the global values."
+ (interactive)
+ (kill-local-variable 'process-environment)
+ (kill-local-variable 'exec-path))
+
(provide 'buffer-env)
;;; buffer-env.el ends here
- [elpa] branch externals/buffer-env created (now dc7342277f), ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env a12a914cd5 05/12: No message for hidden buffers, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 32c1cfdf06 08/12: Add a Readme, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 564c3679c8 11/12: Add mode line indicator and make messages optional, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 4ed60c9fee 03/12: Add a separate buffer-env--locate-script function, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env eb4cf91f7b 02/12: Refinements in defcustoms, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 3568a9f426 01/12: Initial commit, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 5f4e2258ff 04/12: Add buffer-env-reset,
ELPA Syncer <=
- [elpa] externals/buffer-env f05d5bd1e7 07/12: Fix checkdoc and package-lint issues, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env 033f04fd27 10/12: Command to display the process environment, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env ed0a4b31ce 06/12: Some simplifications, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env f3781a628a 09/12: Update README, ELPA Syncer, 2022/02/28
- [elpa] externals/buffer-env dc7342277f 12/12: Release on ELPA, ELPA Syncer, 2022/02/28