[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Remove Org Struct mode
From: |
Adam Porter |
Subject: |
Re: [O] [RFC] Remove Org Struct mode |
Date: |
Sat, 02 Sep 2017 03:03:47 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Michael Brand <address@hidden> 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. :)
- Re: [O] [RFC] Remove Org Struct mode,
Adam Porter <=