On Tue, Apr 20, 2021 at 4:24 PM John Kitchin <jkitchin@andrew.cmu.edu> wrote:
I have used an approach like the one here
https://endlessparentheses.com/define-context-aware-keys-in-emacs.html

to make context aware key-bindings.

THanks John. That post was very helpful -- really all I was looking for was (org-in-src-block-p), but the larger infrastructure is cool and I'll keep it around for a while to see if I end up reusing it.