Move Circe config to separate file
This commit is contained in:
parent
8bb4148bc6
commit
35f1229aa3
3 changed files with 59 additions and 60 deletions
|
@ -17,6 +17,7 @@ all: $(SITE_LISPS) init.elc $(INIT_LISPS) $(AUTOLOADS_FILE)
|
|||
-directory "$(HOME)/.emacs.d/site-lisp" \
|
||||
-directory "$(HOME)/.emacs.d/vendor-lisp/emacs-slack" \
|
||||
-directory "$(HOME)/.emacs.d/vendor-lisp/circe" \
|
||||
-directory "$(HOME)/.emacs.d/vendor-lisp/circe-serenity" \
|
||||
-eval "(package-initialize)" \
|
||||
-eval "(byte-compile-file \"$<\")"
|
||||
|
||||
|
|
|
@ -959,6 +959,12 @@ To start off, first I need to enable lexical binding.
|
|||
(with-eval-after-load 'slack (load "oni-slack-init"))
|
||||
#+END_SRC
|
||||
|
||||
- [[file:init/oni-circe-init.org][Circe]] :: A very nice and clean IRC client for Emacs.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'circe (load "oni-circe-init"))
|
||||
#+END_SRC
|
||||
|
||||
** Linewise user-interface
|
||||
|
||||
This is the library used by Circe and Slack to display messages.
|
||||
|
@ -1014,66 +1020,6 @@ To start off, first I need to enable lexical binding.
|
|||
(setq lui-fill-type nil)
|
||||
#+END_SRC
|
||||
|
||||
** Circe
|
||||
|
||||
I switched to Circe from ERC because I couldn't make the
|
||||
customizations I wanted to, Circe seems much better at this.
|
||||
|
||||
Make sure that Emacs knows these function exist when the file is
|
||||
being compiled.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(eval-when-compile (require 'oni-circe))
|
||||
#+END_SRC
|
||||
|
||||
I spend most of my time on IRC on Freenode.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(eval-when-compile (require 'circe))
|
||||
|
||||
(with-eval-after-load 'circe
|
||||
(add-to-list 'circe-network-options
|
||||
`("Freenode"
|
||||
:nick "ryuslash"
|
||||
:channels ("#emacs"
|
||||
"#mowedline"
|
||||
"#ninthfloor"
|
||||
"#dispass"
|
||||
"#linuxvoice"
|
||||
"#conkeror")
|
||||
:nickserv-password
|
||||
,(oni-circe-get-password-for "irc.freenode.net"))))
|
||||
#+END_SRC
|
||||
|
||||
Sometimes I watch some Twitch streams as well.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'circe
|
||||
(add-to-list 'circe-network-options
|
||||
`("Twitch"
|
||||
:use-tls nil
|
||||
:nick "ryuslash"
|
||||
:host "irc.twitch.tv"
|
||||
:pass ,(oni-circe-get-password-for "irc.twitch.tv")
|
||||
:port 6667)))
|
||||
#+END_SRC
|
||||
|
||||
Enable coloring of nicks.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'circe
|
||||
(require 'circe-color-nicks)
|
||||
(enable-circe-color-nicks))
|
||||
#+END_SRC
|
||||
|
||||
Align all nicks.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(with-eval-after-load 'circe
|
||||
(require 'circe-serenity)
|
||||
(enable-circe-serenity))
|
||||
#+END_SRC
|
||||
|
||||
** Jabber
|
||||
|
||||
I like using XMPP to talk to people, jabber.el is very good at
|
||||
|
|
52
emacs/.emacs.d/init/oni-circe-init.org
Normal file
52
emacs/.emacs.d/init/oni-circe-init.org
Normal file
|
@ -0,0 +1,52 @@
|
|||
#+TITLE: Circe config
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(require 'circe)
|
||||
(require 'circe-color-nicks)
|
||||
(require 'circe-serenity)
|
||||
(require 'oni-circe)
|
||||
#+END_SRC
|
||||
|
||||
I switched to Circe from ERC because I couldn't make the
|
||||
customizations I wanted to, Circe seems much better at this.
|
||||
|
||||
I spend most of my time on IRC on Freenode.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-to-list 'circe-network-options
|
||||
`("Freenode"
|
||||
:nick "ryuslash"
|
||||
:channels ("#emacs"
|
||||
"#mowedline"
|
||||
"#ninthfloor"
|
||||
"#dispass"
|
||||
"#linuxvoice"
|
||||
"#conkeror")
|
||||
:nickserv-password
|
||||
,(oni-circe-get-password-for "irc.freenode.net")))
|
||||
#+END_SRC
|
||||
|
||||
Sometimes I watch some Twitch streams as well.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-to-list 'circe-network-options
|
||||
`("Twitch"
|
||||
:use-tls nil
|
||||
:nick "ryuslash"
|
||||
:host "irc.twitch.tv"
|
||||
:pass ,(oni-circe-get-password-for "irc.twitch.tv")
|
||||
:port 6667))
|
||||
#+END_SRC
|
||||
|
||||
Enable coloring of nicks.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(enable-circe-color-nicks)
|
||||
#+END_SRC
|
||||
|
||||
Align all nicks and generally clean up the buffer. I call it: Circe
|
||||
Serenity.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(enable-circe-serenity)
|
||||
#+END_SRC
|
Loading…
Reference in a new issue