From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Writing .el files for org in org? Date: Tue, 27 May 2014 11:07:03 +0200 Message-ID: References: <8738fv1ufv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpDLp-0006DJ-5L for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpDLi-0002sM-4p for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:07:17 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:36266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpDLh-0002sE-Vw for emacs-orgmode@gnu.org; Tue, 27 May 2014 05:07:10 -0400 Received: by mail-wi0-f179.google.com with SMTP id bs8so1270679wib.0 for ; Tue, 27 May 2014 02:07:09 -0700 (PDT) In-Reply-To: <8738fv1ufv.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 27 May 2014 10:45:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thorsten Jolitz Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Thorsten Thorsten Jolitz writes: > Rainer M Krug writes: > > Hi Rainer,=20 > >> 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.=20 > > They work with old-school and outshine (=3D 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=20 > > ,--------------------------------- > | 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.=20 I got it working - looks very nice. Definitely an option. Thanks, Rainer =2D-=20 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: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJThFW3AAoJENvXNx4PUvmCmXkIALpuDc2dC6Pafv0ujkuAlMvB BvkmHnx3RtMdYqI9z0h848/br2Ptm/TShsKrmh3wjye5Vt3UJnLNsRp7u04k77qi yQB6b40lvAqTrKEwI4361IuB5OKR1+7cmK80AINP3TSkqsQx+8dq7LTXZo44GRVH Bik50VJR6yfZYe4F9moeUhjqyaRP/VvNjN6DR7hkdlZ/4XAhS9LOOQrGDQgELHmV LQGPgOTVX6wpE/2JqmQdsBvdpo3KZsfMzVrbtlXQU6TrHXWRE2IYBXYHC3XscF7w ux3RXsuJuaY9lLoOlS57colvz4qZmPCjjGLs/XbWqRIFn4OXSGpiGg8UPtfQ2AU= =pc/m -----END PGP SIGNATURE----- --=-=-=--