Skip to content

Instantly share code, notes, and snippets.

@ajchemist
Created September 23, 2013 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajchemist/6665535 to your computer and use it in GitHub Desktop.
Save ajchemist/6665535 to your computer and use it in GitHub Desktop.
Associate code edit buffer with babel comint session, if one exists.
author Dan Davison <davison@stats.ox.ac.uk>
Tue, 17 Aug 2010 00:55:24 +0000 (20:55 -0400)
committer Dan Davison <davison@stats.ox.ac.uk>
Tue, 17 Aug 2010 21:32:23 +0000 (17:32 -0400)
* org-src.el (org-edit-src-code): If at src block, store babel
info as buffer local variable.
(org-src-associate-babel-session): New function to associate
code edit buffer with comint session. Does nothing
unless a language-specific function named
`org-babel-LANG-associate-session' exists.
(org-src-babel-configure-edit-buffer): New function to be
called in `org-src-mode-hook'.
(org-src-mode-hook): add `org-src-babel-configure-edit-buffer'
to hook.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment