Skip to content

Instantly share code, notes, and snippets.

@mwolson
Created December 4, 2012 22:08
Show Gist options
  • Save mwolson/4209340 to your computer and use it in GitHub Desktop.
Save mwolson/4209340 to your computer and use it in GitHub Desktop.
Make ERC look nice with some themes
;;; Assumptions:
;;
;; - Solarized (dark) theme has already been loaded
;; https://github.com/sellout/emacs-color-theme-solarized
;;
;; - Nicks in ERC buffer before running this code may look weird.
;; New activity in ERC buffer after running this code should look OK.
(defun mwolson/make-erc-themeable ()
(interactive)
(require 'rcirc) ; for face definitions
(put 'erc-input-face 'face-alias 'rcirc-timestamp)
(put 'erc-my-nick-face 'face-alias 'rcirc-my-nick)
(put 'erc-keyword-face 'face-alias 'show-paren-match)
(put 'erc-nick-default-face 'face-alias 'font-lock-string-face)
(put 'erc-notice-face 'face-alias 'font-lock-function-name-face)
(put 'erc-timestamp-face 'face-alias 'rcirc-timestamp))
;; Make sure buttons don't overwrite erc-my-nick-face with erc-nick-default-face
(setq erc-button-nickname-face nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment