-
Notifications
You must be signed in to change notification settings - Fork 14
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
Minor Issue With Org-mode Font Locking #40
Comments
Hi, sorry for the delayed response. While I use org-mode myself, I typically put text on each header line so this hasn't really been a problem for me. Can you tell me a little bit more about how you use org-mode and what you think correct behavior would be? One option would be to stop considering whitespace-at-eol an error type, which you could do by customizing |
Hi, thanks for the response! My specific use-case here is an org-capture-template that I use to populate a notes file. The template has several header lines for info I know I'm going to need, but haven't added yet. I also add the new templates to the top of the file, so whitespace-at-eol won't work. |
Thanks for the additional context. What do you think correct behavior should be? It sounds to me like the "DWIM-iest" thing would be for ethan-wspace to know that whitespace after header lines is not an error, but only in I still think the easiest solution for you is to remove
|
I do rely on the package fairly heavily in the normal course of my day, including in org-mode, so disabling it for the whole mode is a no-go. I had vague ideas of an optional "disable for lines that only contain symbols", but other than that I don't have a good solution. Like I said, it's a minor issue - if you can't think of anything good either, then we'll close this. |
When ethan-wspace cleans a buffer, it removes all trailing whitespace. This breaks org-mode font locking for outlines. In org-mode, header lines are color-coded according to their depth, based on the number of leading asterisks (or at least, that's what I use). But that requires a space after the last asterisk, and if there's nothing else on the line ethan-wspace will delete that space and break the font-locking
A file like
will have the space character at the end of the third line removed, and show up as white characters.
The text was updated successfully, but these errors were encountered: