This PR introduces a customization group for password-store and makes
password-store-password-length customizable by the user.

Nico
From eb1ed43fffdbf08aa98000c40a872e780a8126e8 Mon Sep 17 00:00:00 2001
From: Nicolas Petton <[email protected]>
Date: Fri, 22 May 2015 16:43:06 +0200
Subject: [PATCH] password-store.el: Make `password-store-password-length'
 customizable

---
 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
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")
-- 
2.1.0

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Password-Store mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to