diff options
author | Nicolas Petton <nicolas@petton.fr> | 2015-05-22 16:43:06 +0200 |
---|---|---|
committer | Svend Sorensen <svend@ciffer.net> | 2015-05-26 10:50:05 -0700 |
commit | ddb5806bafd07681185e3b8e1af144a62e9f5d34 (patch) | |
tree | 91cb873fa9b0110b99041d8cb0134004445010d7 | |
parent | fd0c6dcc559ba8a538b0b1b6294ce83bbc5dd100 (diff) | |
download | pass-ddb5806bafd07681185e3b8e1af144a62e9f5d34.tar.gz pass-ddb5806bafd07681185e3b8e1af144a62e9f5d34.tar.bz2 pass-ddb5806bafd07681185e3b8e1af144a62e9f5d34.zip |
emacs: Make `password-store-password-length' customizable
Diffstat (limited to '')
-rw-r--r-- | contrib/emacs/password-store.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el index 3d5eee4..035cc08 100644 --- 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") |