[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/buffer-env eb4cf91f7b 02/12: Refinements in defcustoms
From: |
ELPA Syncer |
Subject: |
[elpa] externals/buffer-env eb4cf91f7b 02/12: Refinements in defcustoms |
Date: |
Mon, 28 Feb 2022 15:57:25 -0500 (EST) |
branch: externals/buffer-env
commit eb4cf91f7bdb085c2fa024a4855d3f00c175030e
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>
Refinements in defcustoms
---
buffer-env.el | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/buffer-env.el b/buffer-env.el
index 41ae65ef99..0db5d82cd5 100644
--- a/buffer-env.el
+++ b/buffer-env.el
@@ -57,32 +57,43 @@
(require 'seq)
(eval-when-compile (require 'subr-x))
-(defcustom buffer-env-file ".envrc"
- "Base name of the script to produce environment variables.")
+(defgroup buffer-env nil
+ "Buffer-local process environments."
+ :group 'processes)
+
+(defcustom buffer-env-script-name ".envrc"
+ "Base name of the script to produce environment variables."
+ :type 'string)
(defcustom buffer-env-command ">&2 . \"$0\" && env -0"
"Command to produce environment variables.
This string is executed as a command in a shell, in the directory
-of the envrc script, with its absolute file name as argument.
-The command should print a null-separated list of environment
-variables, and nothing else, to the standard output.")
+of the environment script, with its absolute file name as
+argument. The command should print a null-separated list of
+environment variables, and nothing else, to the standard
+output."
+ :type 'string)
(defcustom buffer-env-safe-files nil
"List of scripts marked as safe to execute.
Entries are conses consisting of the file name and a hash of its
-content.")
+content."
+ :type 'alist)
(defcustom buffer-env-ignored-variables
'("_=" "PS1=" "SHLVL=" "DISPLAY=" "PWD=")
- "List of environment variables to ignore.")
+ "List of environment variables to ignore."
+ :type '(string))
(defcustom buffer-env-extra-variables
'("TERM=dumb")
- "List of additional environment variables.")
+ "List of additional environment variables."
+ :type '(string))
(defcustom buffer-env-extra-exec-path
(list exec-directory)
- "List of additional `exec-path' entries.")
+ "List of additional `exec-path' entries."
+ :type '(string))
(defun buffer-env-authorize (file)
"Check if FILE is safe to execute, or ask for permission.
- [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 <=
- [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, 2022/02/28
- [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