mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-28 02:56:12 +01:00
1.2 KiB
1.2 KiB
ORG
ORG Linkz
Based on org-linkz Remove validation link from exported html file
(setq org-html-validation-link nil)
(require 'org-protocol)
(setq org-capture-templates
'(
("o" "Link capture" entry
(file+headline "~/.local/share/chezmoi/org/linkz.org" "INBOX")
"* %a %U"
:immediate-finish t)
))
(setq org-protocol-default-template-key "o")
Then a .desktop file is needed for firefox
[Desktop Entry]
Name=org-protocol
Exec=emacsclient -n %u
Type=Application
Terminal=false
Categories=System;
MimeType=x-scheme-handler/org-protocol;
Then a bookmark must be added into firefox with this location
javascript:location.href="org-protocol:///capture?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title||"[untitled page]")