Skip to content

Instantly share code, notes, and snippets.

@nealey
Created November 19, 2015 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nealey/2c9e948a79b64f30315c to your computer and use it in GitHub Desktop.
Save nealey/2c9e948a79b64f30315c to your computer and use it in GitHub Desktop.
Cloud To Butt for rcirc
(defun neale/rcirc-butt-markup (sender response)
(while (re-search-forward "the cloud" nil t)
(replace-match "my butt"))
(goto-char (point-min))
(while (re-search-forward "cloud" nil t)
(replace-match "butt"))
(goto-char (point-min))
(while (re-search-forward "cyber" nil t)
(replace-match "spider")))
(add-hook 'rcirc-markup-text-functions 'neale/rcirc-butt-markup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment