Skip to content

Commit

Permalink
Add variable rcirc-enable-late-fix to rcirc layer
Browse files Browse the repository at this point in the history
Add a configuration variable to enable the included rcirc-late-fix package
in the rcirc layer.  The package is still disabled by default.
  • Loading branch information
Miciah authored and sdwolfz committed Nov 25, 2018
1 parent 6608d49 commit e6811c8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.develop
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ This file containes the change log for the next major version of Spacemacs.
- Make =org-projectile= integration compatible with the newest version.
- Add package =helm-org-rifle=, with keybinding ~SPC a o r~ to rifle through
files.
**** Rcirc
- New variable =rcirc-enable-late-fix= to enable or disable the included
=rcirc-late-fix= package (disabled by default).
**** Scala
- Move =ensime= to the =java= layer (Tor Hedin Bronner)
**** Syntax-checking
Expand Down
16 changes: 13 additions & 3 deletions layers/+chat/rcirc/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- [[#features][Features:]]
- [[#install][Install]]
- [[#layer][Layer]]
- [[#configuration][Configuration]]
- [[#configuring-authentication][Configuring authentication]]
- [[#storing-the-credentials-in-your-dotfile][Storing the credentials in your dotfile]]
- [[#example][Example:]]
- [[#storing-the-credentials-in-your-dropbox][Storing the credentials in your Dropbox]]
Expand All @@ -16,6 +16,7 @@
- [[#connecting-behind-a-znc-bouncer-and-storing-the-credentials-in-authinfo][Connecting behind a ZNC bouncer and storing the credentials in authinfo]]
- [[#disclaimer][Disclaimer]]
- [[#note][Note]]
- [[#enabling-sfoobar][Enabling =s/foo/bar/=]]
- [[#key-bindings][Key Bindings]]
- [[#rcirc-documentation][Rcirc documentation]]
- [[#spacemacs-layout-support][Spacemacs Layout Support]]
Expand All @@ -29,7 +30,7 @@ and ZNC.
- Support for credentials stored in =~/.authinfo.gpg= (need to have gnutls)
- Support ZNC support (with optional =~/.authinfo.gpg=)
- Colored nicknames
- WIP: Real time change when people use =/s/foo/bar= in the chats
- Real-time change when people use =s/foo/bar/= in chat
- Completion of Emojis using [[https://github.com/dunn/company-emoji][company-emoji]] (still needs a way of showing, either
using the =emoji= layer or having a proper font) :clap:

Expand All @@ -39,7 +40,7 @@ To use this configuration layer, add it to your =~/.spacemacs=. You will need to
add =rcirc= to the existing =dotspacemacs-configuration-layers= list in this
file.

** Configuration
** Configuring authentication
There are several ways to configure rcirc supported by the layer:
- By storing your credentials in =rcirc-server-alist= in your dotfile (not
secured)
Expand Down Expand Up @@ -166,6 +167,15 @@ For now authinfo is mandatory to use the ZNC configuration.
:channels ("#jupiterbroadcasting"))))
#+END_SRC

** Enabling =s/foo/bar/=
To configure rcirc to update buffers when people use =s/foo/bar/=, set the
variable =rcirc-enable-late-fix= to =t= in your dotfile:

#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(rcirc :variables rcirc-enable-late-fix t)))
#+END_SRC

* Key Bindings

| Key Binding | Description |
Expand Down
3 changes: 3 additions & 0 deletions layers/+chat/rcirc/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
(defvar rcirc-enable-authinfo-support nil
"if non nil then authentication uses authinfo.")

(defvar rcirc-enable-late-fix nil
"if non nil then enable rcirc-late-fix to show s/// fixes in rcirc buffers.")

(defvar rcirc-enable-znc-support nil
"if non nil then znc is enabled.")

Expand Down
8 changes: 8 additions & 0 deletions layers/+chat/rcirc/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
persp-mode
rcirc
rcirc-color
(rcirc-late-fix :location local
:toggle rcirc-enable-late-fix)
rcirc-notify
))

Expand Down Expand Up @@ -104,6 +106,12 @@
(defun rcirc/init-rcirc-color ()
(use-package rcirc-color :defer t))

(defun rcirc/init-rcirc-late-fix ()
(spacemacs|use-package-add-hook rcirc
:post-config
(when rcirc-enable-late-fix
(use-package rcirc-late-fix))))

(defun rcirc/init-rcirc-notify ()
(use-package rcirc-notify
:defer t
Expand Down

0 comments on commit e6811c8

Please sign in to comment.