Skip to content

Instantly share code, notes, and snippets.

@novoid
Created November 15, 2019 13:31
Show Gist options
  • Save novoid/16cd4af41301d42ce8a02908448e6e2b to your computer and use it in GitHub Desktop.
Save novoid/16cd4af41301d42ce8a02908448e6e2b to your computer and use it in GitHub Desktop.
Emacs yankpad template for adding a new contact

\** `(my-capture-prompt “First name” ‘my-firstname)` `(my-capture-prompt “Last name” ‘my-lastname)` :`(my-capture-insert ‘my-firstname)“(my-capture-insert ‘my-lastname)`:

  • First personal contact:
@stefan2904
Copy link

What is the reason you use yankpad for this, and not org-capture?

@novoid
Copy link
Author

novoid commented Jun 25, 2021

Good question.

I guess the main reason is that I want to put the entry to the right position myself. I don't have one flat list of contacts. With capture, I guess I would need to define the capture target with each snippet separately. Instead, I switch to the contacts.org file, locate the right spot and insert a new contact using this snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment