Created
April 25, 2014 10:41
-
-
Save areina/11285156 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 t-pull-request() | |
(interactive) | |
(async-shell-command "hub pull-request") | |
(with-current-buffer "*Async Shell Command*" | |
(add-hook 'comint-output-filter-functions | |
'(lambda (txt) | |
(if (string-match-p "https" txt) | |
(browse-url txt))) | |
nil t))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment