emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] orgstruct-mode for Emacs Lisp files


From: Carsten Dominik
Subject: Re: [Orgmode] orgstruct-mode for Emacs Lisp files
Date: Wed, 15 Oct 2008 13:05:28 +0200

Hi Daniel,

you should use outline-minor-mode, and then just call org-cycle while that mode is active. The FAQ covers this issue

http://orgmode.org/worg/org-faq.php

under the question 'Can I get the visibility-cycling features in outline-mode and outline-minor-mode?'

- Carsten

On Oct 15, 2008, at 11:02 AM, Daniel Clemente wrote:


This has been addressed many times. Given an .el file with comments like:

; section 1
;; subsection 1
aaa
;;; subsubsection 1
e
;;; subsubsection 2
iiiiiii
;; section 2
....


Then it would be useful to use TAB to cycle the state of those headings. There's outline-mode, but orgstruct-mode is directly usable for org users, and thus easier.

 However, I find that this procedure didn't work on org-mode 6.09:

1. open that file
2. evaluate (setq org-outline-regexp ";+ ")
3. M-x orgstruct-minor-mode


The TAB key still works only on headers matching "\\*+ ", so I think that I'm changing the wrong regexp, or that orgstruct-mode didn't detect the change.

Could you please add a paragraph in the manual, in the section „The Orgstruct minor mode“, that tells about how could you change the outline regexp in case a mode needs it?


I found no documentation for org-outline-regexp (less than 10 results on many search engines!).


 Thanks,

Daniel


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]