issues to attend like european lisp symposium, european CL meeting or Barcelona Music HackDay and Sonar2013 itself), Whatever, I'm back to blogging.
Conkeror
Lately I started to use conkeror as my main browser. That means usingit for most of the tasks, and trying to configure it properly for all
my needs.
It feels really nice when the same shortcuts you'd use in emacs work
in your browser, and in fact, it has a very emacsy approach also on
the code. The browser is written in javascript, and it also has
page-modes, interactive functions, minibuffer, etc...
Awareness
When you use an extensible software you start becomming aware of yourmovements. I had that feeling and wrote org-protocol-github-lines to
add links in github pages that pointed to emacs.
Another feature of org-protocol-github-lines is that you have a new
button on top of github urls where you can clone a repo to your machine.
So what?
Since I have m-x in my browser, I try to write commands for repetitivetasks (the same I'd do with emacs). So I wrote this little snippet
that you can put in your .conkerorrc and m-x github-clone-repo to get the repo on your box
. provided you have emacs-server running and
org-protocol-github-lines.el evaluated .
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
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")); |