Created
July 25, 2012 21:02
-
-
Save ieure/3178659 to your computer and use it in GitHub Desktop.
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 erc-next-link (arg) | |
"Move point to the ARGth URL, or the end of the buffer if none." | |
(interactive "p") | |
(or (re-search-forward erc-button-url-regexp (point-max) t arg) | |
(goto-char (point-max)))) | |
(defun erc-previous-link (arg) | |
"Move point to the ARGth most recent URL." | |
(interactive "p") | |
(when (looking-at erc-button-url-regexp) | |
(re-search-backward "\\\s")) | |
(re-search-backward erc-button-url-regexp 0 t)) | |
(define-key erc-mode-map "\C-cp" 'erc-previous-link) | |
(define-key erc-mode-map "\C-cn" 'erc-next-link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment