JV <[email protected]> writes: >>> 1. headline indicators (stars followed by space) >> >> There is a keyword for that. The face is determined by `org-get-level-face'. > > org-level-N faces are applied to both headline indicators (stars plus a > space) and their text. There isn't currently a way to fontify the > indicator (used by org-indent-mode for alignment) separately from the > headline text.
See `org-level-color-stars-only'. >>> 3. spaces at beginning of line >> >> Not sure why that would be needed. > > When a plain list item contains multiple lines and/or paragraphs, some > lines will have structurally significant leading spaces (indicating > outline level) but no bullet or number. For these to align as intended, > the leading spaces, like other elements that give the list structure, > must be fixed pitch---even when buffer text is variable pitch. Assigning > a face to leading space permits this. If we deal with variable pitch fonts, the bullet itself may have funny width. Using fixed pitch won't help then. Of course, we can also add faces for bullets, but that feels like a non-ideal solution of the problem. >> I do not mind merging a patch that add extra faces for stars/item bullets. > > If it sounds reasonable to you, I'd be happy to submit a patch that adds: > > 1. Faces for headline indicators, plain list indicators, and significant > leading spaces > 2. Font lock keywords for each of these > > The faces would not have any properties by default. They would simply > enable the formatting control mentioned above. I am not sure about leading spaces. You may need different things depending what kind of element the leading spaces apply to. That might be non-trivial. For headline indicators, if you think that `org-level-color-stars-only' is not enough, we may add more options. Maybe replace `org-level-color-stars-only' with a pair of faces. Plain list indicators might be ok. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
