1

You could just type in where you'd mention the language of the source block. This should work: #+begin_src in :tangle yes Code goes here #+end_src If your file is named config.org, this will tangle to config.in. Not sure whether this is good practice, but you could also use something generic like sh, and then provide a filename to tangle to: #+begin_src sh :...


1

Here is a way to do this with literate programming in org. #+BEGIN_SRC json :tangle config.json {"key1": "value", #+END_SRC For key2 I prefer 0 instead of 1 #+BEGIN_SRC json :tangle config.json "key2": 0} #+END_SRC Here we automate tangling, and then show it is valid json. #+BEGIN_SRC emacs-lisp :var tangle=(org-babel-...


1

Based on suggestions from the spacemacs issue pages [1,2], I arrived at the following configuration that so far solves my issue completely: (setq org-src-fontify-natively t org-src-preserve-indentation t evil-indent-convert-tabs nil org-src-tab-acts-natively nil)


1

Your use case is a bit unusual, but I think you can get what you want with a few tweaks. As you've discovered, when you use the session argument, you will re-use the same active bash/R session each time you re-run your code. That's an issue if you use cd. You could protect against this by including a block resetting your directory at the start of your file: #...


Only top voted, non community-wiki answers of a minimum length are eligible