Rainer M Krug <rai...@krugs.de> writes: Hi Rainer,
> But as I am struggling with elisp, I would like to put the ob-R.el file > into an org file which is then tangled into the ob-R.el file. again, this is the main use case for outshine & outorg. They work with old-school and outshine (= outcommented org-mode) headlines, so you just have to structure ob-R.el with some headlines, either like this: ,-------------- | ;;; Level 1 | ;;;; Level 2 `-------------- or like this ,--------------- | ;; * Level 1 | ;; ** Level 2 `--------------- (just like you structure an Org file) and then you can switch between emacs-lisp-mode and org-mode with ,----------------------------- | M-# M-# (outorg-edit-as-org) `----------------------------- and ,--------------------------------- | M-# (outorg-copy-edits-and-exit) `--------------------------------- Org-mode and emacs-lisp-mode thus become two different views on the same (well-structured) file, and you can easily switch between them. -- cheers, Thorsten