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.
This commit is contained in:
parent
110f52b9ea
commit
09465f59b6
@ -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)))))
|
||||
|
||||
|
36
applicationConfiguration/.emacs/jlj-erc.el
Normal file
36
applicationConfiguration/.emacs/jlj-erc.el
Normal file
@ -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)
|
BIN
applicationConfiguration/.emacs/jlj-secrets.gpg
Normal file
BIN
applicationConfiguration/.emacs/jlj-secrets.gpg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user