Skip to content

Instantly share code, notes, and snippets.

@kidd
Created April 16, 2013 22:25
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 kidd/5400184 to your computer and use it in GitHub Desktop.
Save kidd/5400184 to your computer and use it in GitHub Desktop.
interactive("github-clone-repo", null, function(I){
var document = I.buffer.document;
var url = document.URL;
var project = document.URL.match(/github.com\/([^/]+\/[^/]+)/)[1];
var repoTitle = document.querySelectorAll(".js-current-repository");
cloneLink = "org-protocol://github-clone://" + project;
document.location = cloneLink;
});
set_protocol_handler("org-protocol", find_file_in_path("emacsclient"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment