|
From: | Howard Melman |
Subject: | Re: Convert some files from outline-mode to org-mode |
Date: | Wed, 29 Apr 2020 09:54:56 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) |
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 ";;;;? \\|(....") In python-mode: (setq-local outline-regexp (python-rx (* space) (or defun decorator))) In html-mode: (setq-local outline-regexp "<[hH]\\([1-6]\\)\\>") -- Howard
[Prev in Thread] | Current Thread | [Next in Thread] |