Created
December 10, 2012 18:42
-
-
Save darrik/4252416 to your computer and use it in GitHub Desktop.
Lazy EPA/GPG file loading in Emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Populate epa-file-passphrase-alist | |
(load-file (concat (getenv "HOME") "/.secrets.el.gpg")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'epa-file-passphrase-alist '("/path/to/file.org.gpg" . "password")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I got tired of entering passwords for all my gpg encrypted files every time I started Emacs so I came up with this insecure solution. | |
Installation: | |
Put (load-file (concat (getenv "HOME") "/.secrets.el.gpg")) somewhere in your emacs init. | |
Add a (add-to-list 'epa-file-passphrase-alist '("/path/to/file.org.gpg" . "password")) entry for each of the files you want in $HOME/.secrets.el.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I should probably mention that you might not want to use this for anything with sensitive information.