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 0000000..9deeeee Binary files /dev/null and b/applicationConfiguration/.emacs/jlj-secrets.gpg differ