From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: full outline functionality in .el files: how? Date: Thu, 24 Jan 2013 14:36:24 +0100 Message-ID: <87zjzyityf.fsf@googlemail.com> References: <2013-01-21T12-04-57@devnull.Karl-Voit.at> <2013-01-23T15-20-19@devnull.Karl-Voit.at> <87vcanfl1k.fsf@googlemail.com> <20130124113651.GA24543@boo.workgroup> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyMyt-0004MU-Fw for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 08:36:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TyMyq-0000eT-WF for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 08:36:39 -0500 Received: from plane.gmane.org ([80.91.229.3]:38371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TyMyq-0000eL-Q5 for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 08:36:36 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TyMz5-0004un-VO for emacs-orgmode@gnu.org; Thu, 24 Jan 2013 14:36:51 +0100 Received: from g231234209.adsl.alicedsl.de ([92.231.234.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jan 2013 14:36:51 +0100 Received: from tjolitz by g231234209.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Jan 2013 14:36:51 +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 Gregor Zattler writes: Hi Gregor, > * Thorsten Jolitz [24. Jan. 2013]: >> - after figuring out that I can have full outline functionality in .el >> files too, the (in my eyes) main advantage of an org-based config was >> gone. > > could you please elaborate how to achieve this? I already shared my new trick (which might not be that new for many others) on the PicoLisp mailing list: ,------------------------------------------------------------------- | http://www.mail-archive.com/picolisp@software-lab.de/msg03764.html `------------------------------------------------------------------- When you replace # with ; as comment char, there is no difference between a PicoLisp source file (.l) or an Emacs Lisp source file (.el) with regards to this trick. Actually, the Org-mode visibility commands mostly work out of the box too, without the .l or .el source buffer being in org (minor) mode, since outline-minor-mode is active and these Org commands often simply act on the (buffer local) 'outline-regexp', which might be '^;; \*+ ' or '^## \*+ ' or something similar too. -- cheers, Thorsten