emacs-devel
[Top][All Lists]
Advanced

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

Re: Convert some files from outline-mode to org-mode


From: Jean-Christophe Helary
Subject: Re: Convert some files from outline-mode to org-mode
Date: Wed, 29 Apr 2020 23:08:25 +0900


> On Apr 29, 2020, at 22:54, Howard Melman <address@hidden> wrote:
> 
> 
> address@hidden writes:
> 
>> But what you propose is certainly a solution to all the org-moders who
>> want to be able to seamlessly access outline files.
> 
> To be clear, it's better than just that. As I said I use it
> for code folding. As long as a programming mode sets
> outline-regexp then outline-minor-mode works with it and
> org-cycle and org-global-cycle work in those modes. I use
> S-TAB and C-TAB in emacs-lisp-mode, python-mode and othes
> all the time. 
> 
> In emacs-lisp-mode:
> 
>    (setq-local outline-regexp ";;;;? \\|(....")

I had to check the weird shortcuts for the hs mode the other day, naively 
thinking that code folding was just a TAB away... Thank yu so much for your 
suggestion.

> In python-mode:
> 
>    (setq-local outline-regexp (python-rx (* space) (or defun decorator)))
> 
> In html-mode:
> 
>    (setq-local outline-regexp "<[hH]\\([1-6]\\)\\>")
> 
> -- 
> 
> Howard

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune





reply via email to

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