From ddb5806bafd07681185e3b8e1af144a62e9f5d34 Mon Sep 17 00:00:00 2001
From: Nicolas Petton <nicolas@petton.fr>
Date: Fri, 22 May 2015 16:43:06 +0200
Subject: emacs: 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")
-- 
cgit v1.2.3