Created
December 4, 2012 22:08
-
-
Save mwolson/4209340 to your computer and use it in GitHub Desktop.
Make ERC look nice with some themes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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