I use yasnippet in orgmode to expand codeblocks of Python and start typing code. My snippet is defined as:
# -*- mode: snippet -*-
# name: emacs-jupyter code block for python (silent)
# key: <spp
# --
#+BEGIN_SRC jupyter-python :session py :results silent output :async yes
$1
#+END_SRC
When I create the snippet and expand it, the cursor is positioned at the $1
so I can start typing. Pressing TAB
again positions the cursor after #+END_SRC
.
Problem: After pressing <spp TAB
, I can start typing, but yasnippet
displays the text being typed in green
, instead of using the colors for the Python language:
The correct colors are only displayed after pressing TAB
again to finish typing, or manually moving the cursor out of the code block:
Question: How can I disable the green color yasnippet
is using?