emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [org-cite] request for coding help on a capf to insert citation key


From: Bruce D'Arcus
Subject: Re: [org-cite] request for coding help on a capf to insert citation key
Date: Mon, 21 Jun 2021 10:16:47 -0400

On Sat, Jun 5, 2021 at 12:13 PM Bruce D'Arcus <bdarcus@gmail.com> wrote:
>
> I've been struggling with this for a while, and am a mediocre programmer, so 
> thought I'd ask for help here.

I made progress on this, with one question, for Nicolas:

What's the best way to constrain the capf?

Idea is if a user is within a citation, and types "@a", it activates.

Here's what I have now, but it's too tight; I'm assuming that second
line is the issue.

  (when (and (eq major-mode 'org-mode)
             (eq (car (org-element-context)) 'citation)
             (looking-back "@[a-zA-Z]*" 5))

Bruce



reply via email to

[Prev in Thread] Current Thread [Next in Thread]