New answers tagged

1 vote
Accepted

Post-process table without changing result of nil (empty table)

The simplest solution would be to write an elisp function that adds the table header and to wrap the code in the source blocks with this function. It may be that this is not possible, because the ...
user avatar
  • 29.8k
0 votes

use org properties as variables in c or python source code

Better to use a named Org table than properties in outline nodes. You then add :var myVarName=myOrgTableName to your source block header. I'm not sure how the table data is passed to a C++ block, ...
user avatar
  • 1,193
1 vote

How to hide a password in an org mode source block?

I don't know of a way to have org-mode automatically obfuscate a password when you export. But, there are a bunch of other things you could do. One option: Create an environment variable for the ...
user avatar
0 votes

Noweb references in sh blocks breaks the syntax highlighting

You can define the delimiters babel use for noweb references, by setting org-babel-noweb-wrap-start and org-babel-noweb-wrap-start. For instance, in org mode document where I dabble in bash, I insert ...
user avatar
0 votes

org-mode batch export hangs when using a python session

Ok, after learning a great deal about how to (clumisly) trace elisp code, I identified this as a bug in prompt detection in python.el: apparently the startup message for the python interpreter is not ...
user avatar
0 votes

Literate Emacs Configuration Exclusion

[Not an answer, but we are talking at cross purposes in the comments, so maybe this will help] Here's a small example (in a file called foo500.org): * foo #+begin_src elisp (princ "Hello world&...
user avatar
  • 19.6k
2 votes
Accepted

Org Mode Structure Templates with emacs-lisp

You can add entries to org-structure-template-alist, e.g. #+begin_src elisp (add-to-list 'org-structure-template-alist '("sl" . "src elisp")) (add-to-list 'org-...
user avatar
  • 19.6k

Top 50 recent answers are included