Skip to content

Commit

Permalink
orca.el: Work around "Greedy org-protocol handler. Killing client."
Browse files Browse the repository at this point in the history
It seems Org-Capture has reset the "Unselected Template" from "l" to
"L", which is why the capture was failing.
  • Loading branch information
abo-abo committed Jul 1, 2019
1 parent 22ec682 commit 7a6f594
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions orca.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@
(require 'org-capture)

;;* Org config
(add-to-list 'org-capture-templates
'("l" "Link" entry (function orca-handle-link)
"* TODO %(orca-wash-link)\nAdded: %T\n%?"))
;; sometimes it's "l", sometimes "L", unsure why
(dolist (key '("l" "L"))
(add-to-list 'org-capture-templates
`(,key "Link" entry #'orca-handle-link
"* TODO %(orca-wash-link)\nAdded: %T\n%?")))
(setq org-protocol-default-template-key "l")

;;* Orca config
Expand Down

0 comments on commit 7a6f594

Please sign in to comment.