emacs-elpa-diffs
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]