From 0ffeb80d50f1ba577dc322e907219efb051ccfb0 Mon Sep 17 00:00:00 2001 From: Andrew Oppenlander Date: Thu, 27 Aug 2015 17:21:41 -0400 Subject: [PATCH] Added the pass contrib layer --- contrib/!tools/pass/README.org | 23 +++++++++++++++++++++++ contrib/!tools/pass/packages.el | 30 ++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 contrib/!tools/pass/README.org create mode 100644 contrib/!tools/pass/packages.el diff --git a/contrib/!tools/pass/README.org b/contrib/!tools/pass/README.org new file mode 100644 index 0000000000000..681d34de917a2 --- /dev/null +++ b/contrib/!tools/pass/README.org @@ -0,0 +1,23 @@ +#+TITLE Pass contribution layer for Spacemacs + +* Table of Contents + - [[#description][Description]] + - [[#key-bindings][Key Bindings]] + +* Description + +This layer adds intregration with [[http://www.passwordstore.org/][pass]], the standard unix password manager. +You must have ~pass~ installed for this layer to function properly. + +* Key Bindings +| Key Bindings | Description | +|--------------+-------------------------------------------------------| +| ~SPC P s y~ | copy password (~password-store-copy~) | +| ~SPC P s g~ | generate new password (~password-store-generate~) | +| ~SPC P s i~ | insert new password (~password-store-insert~) | +| ~SPC P s c~ | edit password (~password-store-edit~) | +| ~SPC P s r~ | rename password (~password-store-rename~) | +| ~SPC P s d~ | remove from password store (~password-store-remove~) | +| ~SPC P s D~ | clear the password store (~password-store-clear~) | +| ~SPC P s I~ | initialize the password store (~password-store-init~) | +| ~SPC P s w~ | open url (~password-store-url~) | diff --git a/contrib/!tools/pass/packages.el b/contrib/!tools/pass/packages.el new file mode 100644 index 0000000000000..63c36bd8e156c --- /dev/null +++ b/contrib/!tools/pass/packages.el @@ -0,0 +1,30 @@ +;;; packages.el --- pass Layer packages File for Spacemacs +;; +;; Copyright (c) 2012-2014 Sylvain Benner +;; Copyright (c) 2014-2015 Sylvain Benner & Contributors +;; +;; Author: Andrew Oppenlander +;; URL: https://github.com/syl20bnr/spacemacs +;; +;; This file is not part of GNU Emacs. +;; +;;; License: GPLv3 + +(setq pass-packages '(password-store)) + +(setq pass-excluded-packages '()) + +(defun pass/init-password-store () + (use-package password-store + :defer t + :init + (evil-leader/set-key + "Psy" 'password-store-copy + "Psg" 'password-store-generate + "Psi" 'password-store-insert + "Psc" 'password-store-edit + "Psr" 'password-store-rename + "Psd" 'password-store-remove + "PsD" 'password-store-clear + "PsI" 'password-store-init + "Psw" 'password-store-url)))