0

When point is inside an org src code block, how can I determine the code type/mode of that block? org-babel does mode specific syntax highlighting for emacs-lisp but I can't quite grep how to know I'm inside an emacs-lisp block for,eg, language specific help lookup.

2
  • There are many questions that are more-or-less duplicates of this one, so it's probably a good idea to search for org-babel-get-src-block-info, select the best one (if there is no exact duplicate) and mark this one as a duplicate of it. That way, related questions are grouped together and we avoid balkanization.
    – NickD
    Jan 9 at 13:53
  • 2
    Does this answer your question? How to get Org-mode Babel src code block language value?
    – NickD
    Jan 19 at 4:17

1 Answer 1

0

from #emacs IRC :

(car (org-babel-get-src-block-info))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.