DEPRECATED: migrated to https://github.com/jethrokuan/dots/
Create a desktop application in `~/.local/share/applications/org-protocol.desktop`:
[Desktop Entry]
Name=org-protocol
Exec=emacsclient %u
Type=Application
Terminal=false
Categories=System;
MimeType=x-scheme-handler/org-protocol;
And reload:
update-desktop-database ~/.local/share/applications/
Create a bookmarklet to save links:
javascript:location.href = 'org-protocol://capture?template=c&url='+
encodeURIComponent(location.href) + '&title=' +
encodeURIComponent(document.title) + '&body=' +
encodeURIComponent(window.getSelection())