Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

2
votes
2answers
144 views

ob-tangle or not?

I'm experimenting with Uncle Dave's config which is using a minimum init.el to launch config.org, which is full of elisp babel source blocks. Here's his relevant launching code: (when (file-readable-...
6
votes
1answer
149 views

tangle the same src block to different files

I would like to tangle a single src block to several files, rather than just one. Ideally I would write something like #+BEGIN_SRC conf :tangle one.conf two.conf three.conf but this produces one ...
4
votes
4answers
652 views

literate programming: do folks revise tangle blocks or make copies

So I'm making a website using an org document and tangling. I've created the basic structure of the site using * file coolsite.org #+BEGIN_SRC sh rails new coolapp #+END_SRC This creates a app/...
5
votes
1answer
137 views

switch-buffer for literate programming

When doing literate programming, I do web development in a single org file, and do org tangle to generate the relevant html and css files. This works, for a few hours/days. When the number of files in ...
2
votes
1answer
80 views

Can tangling embed code in external files? instead of recreating files

I'm building a web application using the literate programming style. At least trying to. I wanted to "hit the ground running", so I decided "make a copy" of one of the many "starter apps" https://...
1
vote
1answer
46 views

Org tangle source blocks to a file with byte-order-mark (BOM) from org mode

Because Firefox doesn't load local files with UTF8 characters like '📞, …, 🖥' in the HTML or the CSS correctly, since it does not receive a <meta charset="utf8" /> header, I need to tangle ...
1
vote
2answers
113 views

:noweb :tangle just not working

I'm trying to get literate programming with :noweb syntax working in org-mode. I think I'm down to about the minimum case: #+TITLE: Console Tic Tac Toe #+SUBTITLE: A Literate Program in EMACS Org-...
1
vote
1answer
43 views

How to pass newline (“\n”) string to noweb <<call>>

Trying to pass multiline argument to Org code block. If make direct call of block then it's Ok. But when call it through noweb ref then Error raised #+NAME: pr #+BEGIN_SRC elisp :results value :var n=...
0
votes
1answer
31 views

How to avoid multiplying of a string which precedes <<noweb reference>> in code block?

When <> expands to multiple line and I wrote like this some-string <<noweb ref>> then it expands like some-string line1-from-noweb-ref some-string line2-from-noweb-ref some-string ...
0
votes
0answers
23 views

Is it possible to define codepage for tangled file while Org-mode tangle?

Subj. I want to tangle file to be in different codepage than viewed Org file. Didn't find any header agruments for encoding :(
2
votes
1answer
252 views

Org Mode Babel - ensure more than one empty line between tangled code blocks (for python)

Suppose I have two code blocks in my org file #+BEGIN_SRC python :tangle ~/dummy.py class A: pass #+END_SRC #+BEGIN_SRC python :tangle ~/dummy.py class B: pass #+END_SRC After org-babel-...
3
votes
1answer
85 views

How to disable noweb prefix lines?

This says that Noweb insertions now honor prefix characters that appear before <<reference>>. And because of that trying to use #+BEGIN_SRC clojure :noweb-ref dep-cljsbuild [lein-...
3
votes
1answer
55 views

How to get values of :var arguments in ob-shell assigned when tangling?

When I run the code bellow directly in orgmode it outputs the correct result #+begin_src sh :var value=1234 :tangle a.sh echo "value = " $value #+end_src value = 1234 But when tangled, it ...
44
votes
6answers
7k views

Org-mode 9: unable to eval code-blocks

My Emacs config lives inside of a .org file from which I tangle source blocks to a .el file. I could evaluate source blocks with C-c C-c Today I updated to org-mode version 9 from org elpa and now ...
4
votes
3answers
573 views

How to change Org-mode babel tangle write to file way as append instead of override by default?

By default, Org-mode will override current babel src block content on file original content (when the file already has content). For example, I have an org-mode file content as the bellowing block: #...
1
vote
1answer
311 views

tangle init file async

I use this function for tangling my init.el file (defun tangle-init () "If the current buffer is 'init.org' the code-blocks are tangled, and the tangled file is compiled." (when (equal (...