Hello, Timothy <tecos...@gmail.com> writes:
> + (cond > + ((string-match-p "#\\+plot" (thing-at-point 'line t)) The whole `org-ctrl-c-ctrl-c' function relies on the parser. It would be nice to use it for this case too. Here a more accurate check would be: (and (< (point) (org-element-property :post-affiliated context)) (org-match-line (rx (zero-or-more (any " " "\t")) "#+plot:"))) Regards, -- Nicolas Goaziou