commit ddb5806bafd07681185e3b8e1af144a62e9f5d34 parent fd0c6dcc559ba8a538b0b1b6294ce83bbc5dd100 Author: Nicolas Petton <nicolas@petton.fr> Date: Fri, 22 May 2015 16:43:06 +0200 emacs: Make `password-store-password-length' customizable Diffstat:
M | contrib/emacs/password-store.el | | | 13 | ++++++++++--- |
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el @@ -34,13 +34,20 @@ (require 'f) (require 's) +(defgroup password-store '() + "Emacs mode for password-store." + :prefix "password-store-" + :group 'password-store) + +(defcustom password-store-password-length 8 + "Default password length." + :group 'password-store + :type 'number) + (defvar password-store-executable (executable-find "pass") "Pass executable.") -(defconst password-store-password-length 8 - "Default password length.") - (defun password-store-timeout () "Number of seconds to wait before clearing the password." (if (getenv "PASSWORD_STORE_CLIP_TIME")