Is is possible to define key bindings for
- Only work inside code blocks;
- Are specific to the programming language of the code block.
For example: if my source code block is for Python, then
C-c C-a runs a function that formats python code (like python black), but if the code block is for R, then
C-c C-a runs a function that formats R code (like styler). If I am outside a source code block
C-c C-a does not do anything.