Emacs Secrets and use-package

Created: Last edited:
Syndicated ยท Original source
https://trevs.site/posts/Emacs_Secrets_and_use-package.html

Emacs Secrets and use-package After following an article from the author of Mastering Emacs, I was quite pleased with source controlling some encrypted secrets that I use in Emacs regularly, such as my elfeed feeds or IRC password. In short, it looks like this: A file, secrets.el.gpg that contains: (setq secret-1 "foo" my/erc-password "hunter2") From use-package declarations in init.el I would load this file: (use-package erc :config (load-library "/path/to/secrets.el.gpg")) (use-package elfeed :config (load-library "/path/to/secrets.el.gpg")) ... Of course, having to copy this line was disgus

Views: 2

Categories: General [c1], Research & Education [c126]

Manage / Login

The Bitcoin-Powered Internet Bulletin Board