From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: [RFC] Remove Org Struct mode Date: Sat, 02 Sep 2017 03:03:47 -0500 Message-ID: <87a82dfrx8.fsf@alphapapa.net> References: <87mv6ul4u6.fsf@nicolasgoaziou.fr> <87wp5uy30w.fsf@gmx.us> <87lgmajz7v.fsf@alphapapa.net> <87bmn6gvue.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do3Pe-00021R-TU for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 04:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1do3Pa-00084H-Ah for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 04:04:18 -0400 Received: from [195.159.176.226] (port=60600 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1do3Pa-000819-4L for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 04:04:14 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1do3PJ-0004rn-Bf for emacs-orgmode@gnu.org; Sat, 02 Sep 2017 10:03:57 +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" To: emacs-orgmode@gnu.org Michael Brand writes: > I assume in the above sentence you meant that a comment to be a > heading has not to be indented. Well, yes and no. On my config, " ;;; test" is highlighted as a heading, but it's only foldable as ";;; test". > That is at least what I observed, and was able to change: > > In the setup code you provided (to be used with plain Outline minor > mode without outshine) with > > (setq outline-regexp "\\(;;[;]\\{1,8\\} \\|\\((defun\\)\\)") > > when " *" is added at the beginning to respect indentation > > (setq outline-regexp " *\\(;;[;]\\{1,8\\} \\|\\((defun\\)\\)") > > the indented comments are also considered a heading. > > This makes me believe that in Outline major mode and maybe partly also > in Org mode even this > > * Heading level 1 > * Heading level 2 > > could be made to work by tweaking outline-regexp and outline-level. Probably so, I haven't dug into outline-mode. :)