Skip to content

Instantly share code, notes, and snippets.

@Raynes
Created December 3, 2011 22:25
Show Gist options
  • Save Raynes/1428337 to your computer and use it in GitHub Desktop.
Save Raynes/1428337 to your computer and use it in GitHub Desktop.
;; 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