From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avner Moshkovitz Subject: How to customize the heading definition in org-mode Date: Fri, 9 Nov 2012 12:57:30 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_D99DCE939A765644BCA10192DD977AED058C3293F4tweetyyvrligh_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWvxx-0001yD-C5 for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 16:18:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWvxw-0007P1-C7 for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 16:18:17 -0500 Received: from mailex.lighthauslogic.com ([96.53.49.204]:10229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWvxw-0007Or-3T for emacs-orgmode@gnu.org; Fri, 09 Nov 2012 16:18:16 -0500 Content-Language: en-US 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" Cc: "avner.moshkovitz@gmail.com" , "avner@telus.net" --_000_D99DCE939A765644BCA10192DD977AED058C3293F4tweetyyvrligh_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, I want to use a lisp file (the .emacs file) in org-mode. This will help me = to navigate through sections of the .emacs configuration file. To do this I will need to customize the heading and change it from '*' to e= .g. ';' (or else my .emacs file will fail to load.) I noticed that in outline-mode there is an option to customize the heading = definition. I looked for an equivalent to this in org-mode but couldn't find a way to c= ustomize the heading definition. Is there a way to do so? Regards, Avner Moshkovitz ________________________________ This e-mail may contain information that is privileged, confidential or oth= erwise exempt from disclosure under applicable laws. Unauthorized use, repr= oduction or dissemination of the e-mail is strictly prohibited. If you have= received this e-mail in error, please contact the sender immediately. [11E= ABB509DF] --_000_D99DCE939A765644BCA10192DD977AED058C3293F4tweetyyvrligh_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I want to use a lis= p file (the .emacs file) in org-mode. This will help me to navigate through= sections of the .emacs configuration file.

To do this I will n= eed to customize the heading and change it from '*' to e.g. ';' (or else my= .emacs file will fail to load.)

 

I noticed that in o= utline-mode there is an option to customize the heading definition.

I looked for an equ= ivalent to this in org-mode but couldn't find a way to customize the headin= g definition.

Is there a way to d= o so?

 

Regards,=

 

Avner Moshkovitz



This e-mail may contain info= rmation that is privileged, confidential or otherwise exempt from disclosur= e under applicable laws. Unauthorized use, reproduction or dissemination of= the e-mail is strictly prohibited. If you have received this e-mail in error, please contact the sender immediat= ely. [11EABB509DF]
--_000_D99DCE939A765644BCA10192DD977AED058C3293F4tweetyyvrligh_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: Re: How to customize the heading definition in org-mode Date: Sat, 10 Nov 2012 10:38:41 +0000 (UTC) Message-ID: <87haox224g.fsf@mean.albasani.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX8Sr-0002MK-0N for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 05:39:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TX8Sn-0002F5-Uc for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 05:39:00 -0500 Received: from plane.gmane.org ([80.91.229.3]:40034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TX8Sn-0002DE-KE for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 05:38:57 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TX8St-0000J0-Pp for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 11:39:03 +0100 Received: from e178196210.adsl.alicedsl.de ([85.178.196.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2012 11:39:03 +0100 Received: from gegendosenfleisch by e178196210.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Nov 2012 11:39:03 +0100 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 Hi, Avner Moshkovitz writes: > I want to use a lisp file (the .emacs file) in org-mode. This will > help me to navigate through sections of the .emacs configuration file. I do so with the following setup: I have a minimal init.el file in my ~/.emacs.d directory. It basically looks like this: --8<---------------cut here---------------start------------->8--- (require 'cl) ;; Load Path to org and babel (setq load-path (cons "path/to/elisp/org-latest/lisp" load-path)) (setq load-path (cons "path/to/elisp/org-latest/contrib/lisp" load-path)) (setq load-path (cons "path/to/elisp/org-latest/contrib/babel/lisp" load-path)) ;; modules got to be set _before_ org is loaded (setq org-modules '(org-bbdb org-bibtex org-gnus org-info org-jsinfo org-irc org-vm org-w3m org-crypt org-learn org-collector org-habit org-depend org-timer)) ;; load up Org-mode and Org-babel (require 'org) ;;(require 'org-babel-init) ;; Load my .emacs (org-babel-load-file "path/to/emacs.org") --8<---------------cut here---------------end--------------->8--- That last org-babel-load-file bit actually loads my other settings. (see http://memnon.sdf-eu.org/emacs.html http://memnon.sdf-eu.org/emacs.org for an example) > I looked for an equivalent to this in org-mode but couldn't find a way > to customize the heading definition. > > Is there a way to do so? AFAIK, the * is a fixed part of the org syntax and is not customizable. hth Memnon From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rogers Subject: Re: How to customize the heading definition in org-mode Date: Sat, 10 Nov 2012 07:58:40 -0800 Message-ID: <20121110075840.72c827cb@blackbox> References: <87haox224g.fsf@mean.albasani.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXDSN-0000wd-Sr for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 10:58:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXDSK-00036g-Ql for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 10:58:51 -0500 Received: from mail-da0-f41.google.com ([209.85.210.41]:61286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXDSK-00036R-KH for emacs-orgmode@gnu.org; Sat, 10 Nov 2012 10:58:48 -0500 Received: by mail-da0-f41.google.com with SMTP id i14so2214142dad.0 for ; Sat, 10 Nov 2012 07:58:47 -0800 (PST) In-Reply-To: <87haox224g.fsf@mean.albasani.net> 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 On Sat, 10 Nov 2012 10:38:41 +0000 (UTC) Memnon Anon wrote: > Avner Moshkovitz writes: > > I looked for an equivalent to this in org-mode but couldn't find a > > way to customize the heading definition. > > > > Is there a way to do so? > > AFAIK, the * is a fixed part of the org syntax and is not > customizable. Yes, there was a discussion here not so long ago - the result of the discussion was (and I'm only paraphrasing) "It's true there is no way to change it, and we're intentionally keeping it that way to prevent needless complexity in org-mode". -- David From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: How to customize the heading definition in org-mode Date: Sun, 11 Nov 2012 22:42:02 -0300 Message-ID: <50a053ed.07cf640a.5e9b.4239@mx.google.com> References: <87haox224g.fsf@mean.albasani.net> <20121110075840.72c827cb@blackbox> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33364) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXj2Q-0004uV-PS for emacs-orgmode@gnu.org; Sun, 11 Nov 2012 20:42:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TXj2N-0006Zw-Nt for emacs-orgmode@gnu.org; Sun, 11 Nov 2012 20:42:10 -0500 Received: from mail-yh0-f41.google.com ([209.85.213.41]:58813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXj2N-0006Zr-Je for emacs-orgmode@gnu.org; Sun, 11 Nov 2012 20:42:07 -0500 Received: by mail-yh0-f41.google.com with SMTP id 47so1182703yhr.0 for ; Sun, 11 Nov 2012 17:42:07 -0800 (PST) In-Reply-To: <20121110075840.72c827cb@blackbox> 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: David Rogers Cc: emacs-orgmode@gnu.org At Sat, 10 Nov 2012 07:58:40 -0800, David Rogers wrote: But for this specific need (organizing the Emacs configuration with org-mode), there is really no need for changing the headline definition. You instead change your Emacs configuration to 'real' org-mode files with the actual configuration inside Emacs-lisp src blocks. This is much more powerful. As Memnon Anon mentioned, you only need a minimal configuration in your init.el file and the rest can go all in one or more org files that you load with org-babel-load-file. I have converted my configuration to an org-mode file a good time ago and I can tell you it is VERY worth the time invested. You can benefit from all org-mode features. What org-babel-load-file does is tangling all of the Emacs-lisp src blocks (only emacs-lisp blocks) to an Emacs lisp file and then load that file. The org-babel-load-file function is smart enough to only tangle the org file if something has changed. Therefore the delay caused by the tangle process only happens when you change something. A bonus side effect of this tangling process is that you can disable a whole part of your Emacs configuration easily simple by setting the 'TANGLE' property of a headline containing the source blocks you want to disable to 'no'. -- Darlan > > On Sat, 10 Nov 2012 10:38:41 +0000 (UTC) > Memnon Anon wrote: > > > Avner Moshkovitz writes: > > > > I looked for an equivalent to this in org-mode but couldn't find a > > > way to customize the heading definition. > > > > > > Is there a way to do so? > > > > AFAIK, the * is a fixed part of the org syntax and is not > > customizable. > > Yes, there was a discussion here not so long ago - the result of the > discussion was (and I'm only paraphrasing) "It's true there is no way to > change it, and we're intentionally keeping it that way to prevent > needless complexity in org-mode". > > -- > David >