Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn on org-indent in a chunk, when it is globally enabled #6

Closed
wants to merge 1 commit into from

Conversation

dvzubarev
Copy link
Contributor

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 is nil, 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 hook poly-org--maybe-enable-org-indent.

@vspinu
Copy link
Contributor

vspinu commented May 10, 2019

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.

@vspinu
Copy link
Contributor

vspinu commented May 10, 2019

Nevermind, I figured it out. Will fix in a minute.

@vspinu vspinu closed this in 15a72ac May 10, 2019
@ghost ghost mentioned this pull request Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants