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

2008-10-16 Thread Daniel Clemente
Hi, thanks, outline-minor-mode works. And after I set outline-regexp, it felt more like org-mode. However, it's not based in org-mode; for instance I could not move trees with M-up M-down and do other operations I like from org's outline. I thought orgstruct-mode would be better. But can

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

2008-10-16 Thread Carsten Dominik
On Oct 16, 2008, at 6:51 PM, Daniel Clemente wrote: Hi, thanks, outline-minor-mode works. And after I set outline-regexp, it felt more like org-mode. However, it's not based in org-mode; for instance I could not move trees with M-up M-down and do other operations I like from org's

[Orgmode] orgstruct-mode for Emacs Lisp files

2008-10-15 Thread Daniel Clemente
This has been addressed many times. Given an .el file with comments like: ; section 1 ;; subsection 1 aaa ;;; subsubsection 1 e ;;; subsubsection 2 iii ;; section 2 Then it would be useful to use TAB to cycle the state of those headings. There's outline-mode, but orgstruct-mode

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

2008-10-15 Thread Carsten Dominik
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