[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)
`-----------------------------
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
- Re: [O] Writing .el files for org in org?, (continued)
- Re: [O] Writing .el files for org in org?, Rainer M Krug, 2014/05/22
- Re: [O] Writing .el files for org in org?, Bastien, 2014/05/22
- Re: [O] Writing .el files for org in org?, Rainer M Krug, 2014/05/22
- Re: [O] Writing .el files for org in org?, Bastien, 2014/05/22
- Re: [O] Writing .el files for org in org?, Rainer M Krug, 2014/05/23
- Re: [O] Writing .el files for org in org?, Josh Berry, 2014/05/22
- Re: [O] Writing .el files for org in org?, Rainer M Krug, 2014/05/22
Re: [O] Writing .el files for org in org?, Grant Rettke, 2014/05/21
Re: [O] Writing .el files for org in org?,
Thorsten Jolitz <=