From 09465f59b662c867d87a7d969acb2e87002c70e2 Mon Sep 17 00:00:00 2001 From: jowj Date: Sun, 28 Apr 2019 17:58:30 -0500 Subject: [PATCH] Create jlj-erc.el for hadnling erc/znc config. Create secrets.gpg - Update calls from init.el to the two new files - jlj-secrets.gpg should be encrypted before upload (and so far seems - to be!) - jlj-erc.el has been the most frustrating thing i've ever done. - jesus. --- applicationConfiguration/.emacs/init.el | 13 +++++-- applicationConfiguration/.emacs/jlj-erc.el | 36 ++++++++++++++++++ .../.emacs/jlj-secrets.gpg | Bin 0 -> 440 bytes 3 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 applicationConfiguration/.emacs/jlj-erc.el create mode 100644 applicationConfiguration/.emacs/jlj-secrets.gpg diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index 20fc194..2e51d0e 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -11,7 +11,8 @@ (unless package-archive-contents (package-refresh-contents)) -(defvar myPackages + +(defvar jlj-Packages '(doom-themes outline-magic multiple-cursors @@ -38,13 +39,18 @@ (mapc #'(lambda (package) (unless (package-installed-p package) (package-install package))) - myPackages) +jlj-Packages) + +;;;;gpg shit +(setf epa-pinentry-mode 'loopback) +(setq auth-sources `("~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-secrets.gpg")) (load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-misc.el") (load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-helm.el") (load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-org.el") (load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-python.el") (load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-rust.el") +(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-erc.el") (custom-set-variables ;; custom-set-variables was added by Custom. @@ -63,7 +69,7 @@ '(org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m)) '(package-selected-packages - '(eyebrowse helm racer flycheck-rust rust-mode color-theme-sanityinc-tomorrow org2blog multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) + '(znc eyebrowse helm racer flycheck-rust rust-mode color-theme-sanityinc-tomorrow org2blog multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) ;;;; run emacs as server (connect to it with `emacsclient`) (server-start) @@ -78,3 +84,4 @@ '(org-level-3 ((t (:inherit outline-3 :height 1.1)))) '(org-level-4 ((t (:inherit outline-4 :height 1.1)))) '(org-level-5 ((t (:inherit outline-5 :height 1.1))))) + diff --git a/applicationConfiguration/.emacs/jlj-erc.el b/applicationConfiguration/.emacs/jlj-erc.el new file mode 100644 index 0000000..15e1315 --- /dev/null +++ b/applicationConfiguration/.emacs/jlj-erc.el @@ -0,0 +1,36 @@ +;;;; example 'join these servers' commands. + +(require 'epa) + + +;; handle annoying gpg shit. +(defun lookup-password (host user port) + "Lookup encrypted password given HOST, USER and PORT for service." + (require 'auth-source) + (funcall (plist-get + (car (auth-source-search + :host host + :user user + :type 'netrc + :port port)) + :secret))) + +(setq znc-password(lookup-password "bouncer.awful.club" "blindidiotgod/OFTC" 5000)) + +;; by default, erc alerts you on any activity. I only want to hear +;; about mentions of nick or keyword +(require 'znc) +(custom-set-variables + '(znc-servers + `(("bouncer.awful.club" 5000 t + ((freenode "blindidiotgod/freenode" ,znc-password) + (OFTC "blindidiotgod/OFTC" ,znc-password)))))) +(setq erc-current-nick-highlight-type 'all) +(setq erc-keywords '("security")) +(setq erc-track-exclude-types '("JOIN" "PART" "NICK" "MODE" "QUIT")) +(setq erc-track-use-faces t) +(setq erc-track-faces-priority-list + '(erc-current-nick-face erc-keyword-face)) +(setq erc-track-priority-faces-only 'all) +(setq erc-hide-list '("PART" "QUIT" "JOIN")) +(setq erc-join-buffer 'bury) diff --git a/applicationConfiguration/.emacs/jlj-secrets.gpg b/applicationConfiguration/.emacs/jlj-secrets.gpg new file mode 100644 index 0000000000000000000000000000000000000000..9deeeeee5bfbc9e4ab538a3635009beef433222d GIT binary patch literal 440 zcmV;p0Z0CY0Sp8A2s!1FcUZLn2mUjd3_YU(`djbN*5p5pXVfDJUL)7}H+v^IHhGB3 zCFv8*CsY7|i=;qTd9Z3dg|zAe-3E75VbL7B%e9Jc>{_}x5E4sw3*?IJ>eO;O@+`M0 zzv({q*dTY6;{U2xUTr~e0s{26VB00A9LE7+9B!b@W&_3Y{(Y|TM(Q|;8%kun{z2+^ zYvNgxJ*1S@I-zybzJi&ym`flmqv19%K_gez`HQondn-ja6aFnW!*lqwo*Rp5Zh ziN^~z1pEz${{&1AZ6>x_tJA$HU`tZyiDbJ=RW!eGaDy_hCU=WZ>c3XGffLU7+ zH(+?nZ)wIJ2Y!BGl}rVPEaK9q0nLi$XiBN|G<9g-NRit-m;c6u57W;Gcj63uoHMjs zmBzoVoH7-3xoFs>%J8YLdxk1?{uPdLCaay;nY5X9bKk_ueGfI!@@+wR{^##>P7)Kz z7P`!g8l0k_N^X1{Ng4k&Q`wg5iL#tksA($OMAkg{qEHhSF%cXE7~jo literal 0 HcmV?d00001