Created
November 12, 2012 23:40
-
-
Save randymorris/4062830 to your computer and use it in GitHub Desktop.
Nicer nick format for rcirc buffers
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
(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