Michael Brand <michael.ch.br...@gmail.com> 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. :)