When using flyspell in emacs, it can be useful to configure flyspell to ignore the contents of certain environments, e.g. tikzcd or tikzpicture.
For example, in the document below one would like to flyspell to ignore the word "asdf" inside the environment myenv.
\documentclass{standalone}
\newenvironment{myenv}{}{}
\begin{document}
\begin{myenv}
asdf
\end{myenv}
\end{document}
How to achieve this?