Created
December 3, 2011 22:26
-
-
Save Raynes/1428340 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
;; ERC | |
(require 'znc) | |
(require 'todochiku) | |
(defun highlight-me (match-type nick message) | |
(unless (posix-string-match "^\\** Users on #" message) | |
(todochiku-message | |
(concat "ERC: Highlight on " (buffer-name (current-buffer))) | |
(concat "<" (first (split-string nick "!")) "> " message) | |
""))) | |
(add-hook 'erc-text-matched-hook 'highlight-me) | |
(add-hook 'erc-text-matched-hook 'erc-beep-on-match) | |
(setq erc-track-exclude-types | |
'("JOIN" "NICK" "PART" "QUIT" "MODE" "KICK" | |
"324" "329" "332" "333" "353" "477")) | |
(setq erc-track-switch-direction 'newest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment