emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Farblos <AKFKQU.9DF7RP@vodafonemail.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable
Date: Fri, 10 Mar 2023 11:01:45 +0000	[thread overview]
Message-ID: <87cz5gzx7q.fsf@localhost> (raw)
In-Reply-To: <9eaf7099554d488d921e64c4b2852a0d@vodafonemail.de>

"Farblos" <AKFKQU.9DF7RP@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	other threads:[~2023-03-10 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 12:48 [ENHANCEMENT] Make `org-babel-do-in-edit-buffer' environment detectable Farblos
2023-03-10 11:01 ` Ihor Radchenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cz5gzx7q.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=AKFKQU.9DF7RP@vodafonemail.de \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).