Skip to content

Commit

Permalink
Added the pass contrib layer
Browse files Browse the repository at this point in the history
  • Loading branch information
oppenlander committed Aug 27, 2015
1 parent 79c45e0 commit 0ffeb80
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
23 changes: 23 additions & 0 deletions contrib/!tools/pass/README.org
Original file line number Diff line number Diff line change
@@ -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~) |
30 changes: 30 additions & 0 deletions contrib/!tools/pass/packages.el
Original file line number Diff line number Diff line change
@@ -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 <andrew.oppenlander@gmail.com>
;; 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)))

0 comments on commit 0ffeb80

Please sign in to comment.