Hi Thorsten

Thorsten Jolitz <tjol...@gmail.com> writes:

> 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. 

I got it working - looks very nice. Definitely an option.

Thanks,

Rainer
-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      rai...@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: pgpE01nuAHkpO.pgp
Description: PGP signature

Reply via email to