[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
- Re: Convert some files from outline-mode to org-mode, (continued)
Re: Convert some files from outline-mode to org-mode, Po Lu, 2020/04/27
- Re: Convert some files from outline-mode to org-mode, Stefan Monnier, 2020/04/27
- Re: Convert some files from outline-mode to org-mode, Jean-Christophe Helary, 2020/04/27
- Re: Convert some files from outline-mode to org-mode, Howard Melman, 2020/04/28
- Re: Convert some files from outline-mode to org-mode, Jean-Christophe Helary, 2020/04/28
- Re: Convert some files from outline-mode to org-mode, Howard Melman, 2020/04/29
- Re: Convert some files from outline-mode to org-mode,
Jean-Christophe Helary <=
- Re: Convert some files from outline-mode to org-mode, Nicolas Goaziou, 2020/04/29
- Re: Convert some files from outline-mode to org-mode, Howard Melman, 2020/04/29
Re: Convert some files from outline-mode to org-mode, Stefan Kangas, 2020/04/29
Re: Convert some files from outline-mode to org-mode, H. Dieter Wilhelm, 2020/04/30
Re: Convert some files from outline-mode to org-mode, Alan Mackenzie, 2020/04/29
Re: Convert some files from outline-mode to org-mode, Howard Melman, 2020/04/29
Re: Convert some files from outline-mode to org-mode, Richard Stallman, 2020/04/29