dotfiles/private_dot_emacs.d/org/org.org
2020-11-04 21:10:07 +01:00

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]")