Skip to content

Instantly share code, notes, and snippets.

@areina
Created April 25, 2014 10:41
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 areina/11285156 to your computer and use it in GitHub Desktop.
Save areina/11285156 to your computer and use it in GitHub Desktop.
(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