Closed dvzubarev closed 5 years ago
Sorry, I missed this pull.
Could you provide an example of the problem? What does it mean miss-aligned?
There is a case when org-indent is disabled globally, i.e. org-startup-indented is nil, but org-indent is enabled per file via org-header #+STARTUP: indent.
The way this should be done is by simply adding org-indent-mode
to the polymode-move-these-minor-modes-from-base-buffer
.
Nevermind, I figured it out. Will fix in a minute.
Otherwise source code would be misaligned with other text around. There is a case when org-indent is disabled globally, i.e.
org-startup-indented
isnil
, but org-indent is enabled per file via org-header#+STARTUP: indent
. I don't know how to handle this case, since I can't get local variables of the host buffer from the hookpoly-org--maybe-enable-org-indent
.