[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Writing .el files for org in org?

From: Thorsten Jolitz
Subject: Re: [O] Writing .el files for org in org?
Date: Tue, 27 May 2014 10:45:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Rainer M Krug <address@hidden> 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)


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]