"Farblos" <akfkqu.9df...@vodafonemail.de> writes:

> For this and similar use cases (run/do not run some major mode hook only in 
> Org source environment), it would be helpful to have a documented dynamic 
> variable (`org-in-babel-environment'?) set by `org-babel-do-in-edit-buffer' 
> or the like that one could query as 

We have org-edit-prep:lang functions that do initial setup in individual
languages. However, they will be applied both when you call
`org-babel-do-in-edit-buffer' and in C-c '.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to