From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: orgstruct-mode with custom headline prefix Date: Thu, 31 Jan 2013 21:24:28 +0100 Message-ID: <8738xh9k3n.fsf@googlemail.com> References: <87vcah6xf5@ch.ristopher.com> <8738xh4xfr@ch.ristopher.com> <87y5f994ni.fsf@bzg.ath.cx> <87pq0l3gr2@ch.ristopher.com> <878v79925v.fsf@bzg.ath.cx> <87k3qt3exu@ch.ristopher.com> <87a9rplhue.fsf@bzg.ath.cx> <87622d5d8e@ch.ristopher.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U10gd-0007uV-1w for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 15:24:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U10gc-0008MM-1s for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 15:24:42 -0500 Received: from plane.gmane.org ([80.91.229.3]:36591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U10gb-0008MG-RM for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 15:24:41 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U10gs-0005G4-FI for emacs-orgmode@gnu.org; Thu, 31 Jan 2013 21:24:58 +0100 Received: from e178189131.adsl.alicedsl.de ([85.178.189.131]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jan 2013 21:24:58 +0100 Received: from tjolitz by e178189131.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Jan 2013 21:24:58 +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 Christopher Schmidt writes: > Here is the patch. Now one just needs > > ;; Local Variables: > ;; eval: (orgstruct-mode 1) > ;; orgstruct-heading-prefix-regexp: ";;; " > ;; End: > > It cannot get any easier than this. Just a question - why ";;; " and not ";; " (i.e. ";; \*+ ")? I (still) don't use orgstruct-mode instead of outline-minor-mode, but can easily use full org-mode functionality in Emacs Lisp files by marking & outcommenting/uncommenting regions that look like this ,----------------------- | ;; * level1 | ;; ** level2 | ;; text text text text | ;; ** level2 | ;; text text text text | | (defun ...) `----------------------- ,----------------------- | * level1 | ** level2 | text text text text | ** level2 | text text text text | | (defun ...) `----------------------- and toggling major modes between Emacs Lisp and Org-mode. With prefixes like ';;; *' or ';;*' this becomes less convenient in my eyes, since 'M-x comment-region' can't be applied anymore. -- cheers, Thorsten