Re: [ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable

2023-03-10 Thread Ihor Radchenko
"Farblos" 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 h

[ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable

2023-03-07 Thread Farblos
Concrete use case: I got fed up by sh-mode notifying me about "Indentation setup for shell type bla" when editing shell source blocks in an Org buffer. (To reproduce, start "emacs -Q", open an empty org file, create a shell source block with contents " echo foo", and press TAB on that line.)