Skip to content
:secret keyword for use-package
Emacs Lisp
Branch: master
Clone or download
Latest commit 716adb7 Jun 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.org Update documentation Jun 12, 2019
use-package-secrets.el

README.org

use-package-secrets

Installation

(use-package use-package-secrets
  :custom
  (use-package-secrets-default-directory "~/docs/secrets")
  :quelpa
  (use-package-secrets :repo "a13/use-package-secrets"
                       :fetcher github
                       :version original))

Usage

(use-package jabber
  :secret
  (jabber-connect-all "~/.secrets.el.gpg")
  :config
  (setq jabber-history-enabled t
        jabber-use-global-history nil
        fsm-debug nil))

(use-package slack
  :secret
  (slack-start "work.el.gpg")
  :commands (slack-start)
  :init
  (setq slack-buffer-emojify t) ;; if you want to enable emoji, default nil
  (setq slack-prefer-current-team t))

Where ~/.secrets.el.gpg is

;; -*- auto-save-default: nil; flycheck-mode: nil; -*-
(setq jabber-account-list (quote
                           (("your-id@jabber.org/emacs"
                             (:password . "your-password")))))

And work.el.gpg looks like:

;; -*- auto-save-default: nil; flycheck-mode: nil; -*-
(slack-register-team
 :name "emacs-slack"
 :default t
 :client-id "aaaaaaaaaaa.00000000000"
 :client-secret "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
 :token "aaaa-sssssssssss-88888888888-hhhhhhhhhhh-jjjjjjjjjj"
 :subscribed-channels '(test-rename rrrrr)
 :full-and-display-names t)
You can’t perform that action at this time.