[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#48710: Retaining code highlighting (for defun, defvar) in outline mo
From: |
Juri Linkov |
Subject: |
bug#48710: Retaining code highlighting (for defun, defvar) in outline mode |
Date: |
Sun, 30 May 2021 00:55:10 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
tags 48710 notabug
close 48710 28.0.50
thanks
> Currently outline mode changes the colour of headings and subheadings.
>
> But I have noticed that elisp structures are also considered as headings.
> This results in some code highlighting problems for things like "defun"
> and "defvar" because the whole line gets a one colour highlighting in
> a way that is similar to a heading face.
>
> It would be better that elisp code structures retain the original code
> highlighting,
> but keep the ... at the end of the line to show that the code body is hidden.
> The ... could be highligted instead instead.
>
> For more flexibility, it would be beneficial to have a separate keybinding
> that toggles
> between showing the contents (body) of a code structure and hiding it, that
> is independent
> of headings.
It seems this is already implemented: when you customize
outline-minor-mode-highlight to a value 't' or 'append' (but not 'override'),
and also customize outline-minor-mode-cycle to t, then after
enabling outline-minor-mode, and typing S-TAB S-TAB on a heading
it keeps the ... at the end of lines, while
retaining the original code highlighting.
Please reopen this report, when you still see a problem
and can't get it working.