summaryrefslogtreecommitdiffstats
path: root/init.org
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-02-26 11:19:23 -0500
committerAmin Bandali <bandali@gnu.org>2019-02-26 11:19:23 -0500
commit3f74e7b36898d38f3794afb6acc325ccbf673a83 (patch)
tree3f706fc76a1740c9bad0faac9dc14ff2fef240cc /init.org
parentc71627dbf76572e1b15cc5864683bcfba875ea68 (diff)
downloadconfigs-3f74e7b36898d38f3794afb6acc325ccbf673a83.tar.gz
configs-3f74e7b36898d38f3794afb6acc325ccbf673a83.tar.xz
configs-3f74e7b36898d38f3794afb6acc325ccbf673a83.zip
[emacs] skeleton for irc setup with ERC and ZNC
Diffstat (limited to '')
-rw-r--r--init.org28
1 files changed, 27 insertions, 1 deletions
diff --git a/init.org b/init.org
index 6f9789f..83ae614 100644
--- a/init.org
+++ b/init.org
@@ -1219,7 +1219,8 @@ There's no way I could top that, so I won't attempt to.
("emacs"
(or
(name . "^\\*scratch\\*$")
- (name . "^\\*Messages\\*$"))))))
+ (name . "^\\*Messages\\*$")))
+ ("erc" (mode . erc-mode)))))
(ibuffer-formats
'((mark modified read-only locked " "
(name 18 18 :left :elide)
@@ -1903,6 +1904,7 @@ Emacs package that displays available keybindings in popup
"C-x v" "version control"
;; prefixes for my personal bindings
"C-c a" "applications"
+ "C-c a e" "erc"
"C-c a s" "shells"
"C-c p" "package-management"
"C-c p e" "package-management/epkg"
@@ -2563,6 +2565,30 @@ Convenient footnotes in =message-mode=.
(gnus-harvest-install)))
#+end_src
+* IRC
+:PROPERTIES:
+:CUSTOM_ID: irc
+:END:
+
+Now with ERC!
+
+#+begin_src emacs-lisp
+(use-package znc
+ :straight (:host nil :repo "https://git.bndl.org/amin/znc.el")
+ :bind (("C-c a e e" . znc-erc)
+ ("C-c a e a" . znc-all))
+ :config
+ (let ((pwd (let ((auth (auth-source-search :host "znca")))
+ (cond
+ ((null auth) (error "Couldn't find znca's authinfo"))
+ (t (funcall (plist-get (car auth) :secret)))))))
+ (setq znc-servers
+ `(("znc.bndl.org" 1337 t
+ ((freenode "amin/freenode" ,pwd)))
+ ("znc.bndl.org" 1337 t
+ ((moznet "amin/moznet" ,pwd)))))))
+#+end_src
+
* Blogging
:PROPERTIES:
:CUSTOM_ID: blogging