Skip to content

Instantly share code, notes, and snippets.

@randymorris
Created November 12, 2012 23:40
Show Gist options
  • Save randymorris/4062830 to your computer and use it in GitHub Desktop.
Save randymorris/4062830 to your computer and use it in GitHub Desktop.
Nicer nick format for rcirc buffers
(defun rcirc-markup-custom-nick-format (sender response)
"Change the way nicks are formatted in rcirc buffers."
(goto-char (point-min))
(string-match "^..:.. <\\([^>]+\\)>" (buffer-string))
(let* ((nick (match-string 1 (buffer-string))))
(while (search-forward (format "<%s>" nick) nil t)
(replace-match (format "%s %s" nick (string #x2237)) nil t))))
(add-to-list 'rcirc-markup-text-functions 'rcirc-markup-custom-nick-format)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment