Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Latest commit

 

History

History
31 lines (24 loc) · 765 Bytes

README.org

File metadata and controls

31 lines (24 loc) · 765 Bytes

Setting Up

Org-protocol

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())