]> git.eshelyaron.com Git - emacs.git/commit
New mode outline-cycle-minor-mode with Orgmode-like TAB cycling on headings
authorJuri Linkov <juri@linkov.net>
Wed, 3 Mar 2021 19:12:13 +0000 (21:12 +0200)
committerJuri Linkov <juri@linkov.net>
Wed, 3 Mar 2021 19:12:13 +0000 (21:12 +0200)
commit6458e16f3381cbd076316d4f228369e31a328cc2
tree42fd0f8ca4c4522ba3ee510beffd0187cbbca89a
parent356636c6a1ebba3e95d0e6609ae0401992008ccf
New mode outline-cycle-minor-mode with Orgmode-like TAB cycling on headings

* lisp/outline.el (outline-mode-cycle-map): New keymap from outline-mode-map.
(outline-mode-map): Inherit from outline-mode-cycle-map.
(outline-font-lock-keywords): Append keymap and face depending on
'outline-minor-mode-cycle' and 'outline-minor-mode-highlight'.
(outline-minor-mode-cycle, outline-minor-mode-highlight): New variables.
(outline-minor-mode-highlight-buffer): New function.
(outline-minor-mode): Handle 'outline-minor-mode-cycle' and
'outline-minor-mode-highlight'.
(outline-cycle-minor-mode, outline-cycle-highlight-minor-mode):
New minor modes (bug#45147).

* etc/compilation.txt:
* etc/grep.txt:
Enable outline-cycle-highlight-minor-mode.
etc/NEWS
etc/compilation.txt
etc/grep.txt
lisp/outline.el