Introduction
Orca is an ORg CApture list of recipes; mainly for capturing from a browser.
The more this package is configured, the less refiling you’ll do on your captures: they will go directly to where they belong.
Here is my example list of configurations:
- Capture URL matching https://www.reddit.com/r/emacs to
emacs.org:Reddit
- Capture URL matching https://emacs.stackexchange.com/ to
emacs.org:Questions
- If the current buffer is e.g.
foo.org
and it has a* Tasks
heading, capture tofoo.org:Tasks
- If nothing else matches, capture to
ent.org:Articles
.
The package needs ripgrep
to be able to detect already-captured links, but also works without.
Configuration
Just requiring the package, only the “capture to current buffer” method will work, since no file paths are recognized:
(require 'orca)
Customize the file paths to your liking using this template:
(setq orca-handler-list
'((orca-handler-match-url
"https://www.reddit.com/emacs/"
"~/Dropbox/org/wiki/emacs.org"
"Reddit")
(orca-handler-match-url
"https://emacs.stackexchange.com/"
"~/Dropbox/org/wiki/emacs.org"
"\\* Questions")
(orca-handler-current-buffer
"\\* Tasks")
(orca-handler-file
"~/Dropbox/org/ent.org"
"\\* Articles")))
It’s also possible to customize interactively via M-x
customize-group
RET
orca
RET
.