diff --git a/ftplugin/org.vim b/ftplugin/org.vim index bdb62e1..5f7c212 100644 --- a/ftplugin/org.vim +++ b/ftplugin/org.vim @@ -30,6 +30,7 @@ let s:org_progs = { \ 'FmtAllTables': '(org-table-map-tables ''org-table-align)', \ 'UpDblock': '(org-dblock-update)', \ 'UpAllDblocks': '(org-update-all-dblocks)', + \ 'ExecuteSrcBlock': '(org-babel-execute-maybe)', \ 'UpTable': '(org-table-iterate)', \ 'UpAllTables': '(org-table-iterate-buffer-tables)', \ 'ApplyTableFormula': '(org-table-calc-current-TBLFM)', diff --git a/test/integration.org b/test/integration.org index d874f09..cd2103a 100644 --- a/test/integration.org +++ b/test/integration.org @@ -25,6 +25,27 @@ The quick brown fox jumps over the lazy dog The quick brown fox jumps over the lazy dog +* TODO Src blocks + +The quick brown fox jumps over the lazy dog + +#+NAME: my-fun +#+BEGIN_SRC python :var x=3 :var y=5 +return x * y * 2 +#+END_SRC + +The quick brown fox jumps over the lazy dog + +#+CALL: my-fun(2,3) + +The quick brown fox jumps over the lazy dog + +The quick brown src_python[:var x=5]{return 3 * 4 + x} fox jumps over the lazy dog + +The quick brown call_my-fun(3,4) fox jumps over the lazy dog + +The quick brown fox jumps over the lazy dog + * TODO Unaligned table The quick brown fox jumps over the lazy dog