From 313f587783feb1c4b497451a2f3af370c0018ff9 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 1 Nov 2018 18:20:51 -0400 Subject: [emacs] assimilate slack and deps, clear up .gitignore, add secrets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hopefully the slack thing is temporary, as i don’t like using proprietary platforms. however, if i must, i’d *much* prefer using free software to access it, rather than executing proprietary JS. note: since i’ve decided to commit etc/secrets.el, it shall not contain any sensitive information itself, but rather how to obtain them. therefore, it must be byte-compiled; and the byte-compiled etc/secrets.elc must *never* be committed. --- etc/secrets.el | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 etc/secrets.el (limited to 'etc') diff --git a/etc/secrets.el b/etc/secrets.el new file mode 100644 index 0000000..9feeceb --- /dev/null +++ b/etc/secrets.el @@ -0,0 +1,7 @@ +(require 'auth-source) +(defvar uw-apv-client-id (eval-when-compile (plist-get (car (auth-source-search :host "uw-apv.slack.com" :max 1)) :client-id))) +(defvar uw-apv-client-secret (eval-when-compile (plist-get (car (auth-source-search :host "uw-apv.slack.com" :max 1)) :client-secret))) +(defvar uw-apv-token (eval-when-compile (plist-get (car (auth-source-search :host "uw-apv.slack.com" :max 1)) :token))) +(defvar watform-client-id (eval-when-compile (plist-get (car (auth-source-search :host "watform.slack.com" :max 1)) :client-id))) +(defvar watform-client-secret (eval-when-compile (plist-get (car (auth-source-search :host "watform.slack.com" :max 1)) :client-secret))) +(defvar watform-token (eval-when-compile (plist-get (car (auth-source-search :host "watform.slack.com" :max 1)) :token))) -- cgit v1.2.3-60-g2f50