m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorSvend Sorensen <svend@ciffer.net>2014-05-07 15:29:05 -0700
committerSvend Sorensen <svend@ciffer.net>2014-05-07 15:55:11 -0700
commitad4fc762750781eac1747cf6d993ccba1434781d (patch)
treeb01a3b8418ccd90d7cdbe0bfc5e27f095870ba43 /contrib
parente25114c4c09be5f055fd2784f420681488ef5df0 (diff)
Implement interactive init function
Diffstat (limited to 'contrib')
-rw-r--r--contrib/emacs/password-store.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el
index 60db318..1863185 100644
--- a/contrib/emacs/password-store.el
+++ b/contrib/emacs/password-store.el
@@ -186,6 +186,14 @@ after `password-store-timeout' seconds."
(run-at-time password-store-timeout nil 'password-store-clear)))
;;;###autoload
+(defun password-store-init (gpg-id)
+ "Initialize new password store and use GPG-ID for encryption.
+
+Separate multiple IDs with spaces."
+ (interactive (list (read-string "GPG ID: ")))
+ (message (password-store--run-init (split-string gpg-id))))
+
+;;;###autoload
(defun password-store-insert (entry password)
"Insert a new ENTRY containing PASSWORD."
(interactive (list (read-string "Password entry: ")