From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Writing .el files for org in org? Date: Tue, 27 May 2014 10:45:24 +0200 Message-ID: <8738fv1ufv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpD13-0000Z0-BG for emacs-orgmode@gnu.org; Tue, 27 May 2014 04:45:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpD0w-0003Xd-UI for emacs-orgmode@gnu.org; Tue, 27 May 2014 04:45:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:39801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpD0w-0003XQ-N8 for emacs-orgmode@gnu.org; Tue, 27 May 2014 04:45:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WpD0r-0006j9-I0 for emacs-orgmode@gnu.org; Tue, 27 May 2014 10:45:37 +0200 Received: from e178190143.adsl.alicedsl.de ([85.178.190.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2014 10:45:37 +0200 Received: from tjolitz by e178190143.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 May 2014 10:45:37 +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: emacs-orgmode@gnu.org Rainer M Krug 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