-
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
Don't highlight tabs when indent-tabs-mode is set to t #31
Comments
FWIW, here's what I'm using right now: (add-hook 'ethan-wspace-mode-hook
(lambda ()
(when indent-tabs-mode
(setq ethan-wspace-errors (remove 'tabs ethan-wspace-errors))))) Perhaps this could be the default behavior? |
That's interesting. Can you tell me a little bit more about your use case? Do you normally use |
Some projects I work on indent using tabs (yes, they are wrong, I know! :-)), so indent-tabs-mode is set to t there. Cleaning/highlighting spaces would be useful when indenting with tabs, yes! |
Sorry for waiting almost a year to fix this, but it should be fixed in current master. I decided to just take the easy fix that you proposed rather than trying to figure out how to define invalid spaces in a file where |
HAA! this borke my workflow ;/ ( https://xkcd.com/1172/ ) I've been happy ethan-wspace used for years, and it had worked almost perfectly -- I've taken some updates every now and then and I've got some small improvements (small as it was aready so good). I like tabs -- it makes my cursor move (8x) faster when using left-right arrow keys. I have indent-tabs-mode set. Last few days, in new installation I've apparenlty downloaded new ethan-wspace.el (for some reason, Finally I got here to look around and noticed the latest commit... and based on that after doing:
Things work as the used to be -- if file initially had tabs it highlights and keeps those -- without I guess setting indent-tabs-mode to nil might also get the old behaviour, but I don't like to emphasize (*) although I'd like to see tabs always highlighted, but haven't got around to configure that -- Anyway, a rant to ages-ago closed issue. I guess I'll be using "First actual release" for the next decade or so... 8D Thanks again for ethan-wspace! |
Hi, thanks for your feedback. It sounds like you want tabs to be always highlit and never cleaned? Unfortunately I don't think we support that yet. I'm not sure it's a good fit for As for breaking your workflow, it's easy enough to customize the behavior of |
I sure want cleaning (cleaning meaning tabs-to-spaces) when I find-file an existing file that doesn't have tabs so that I don't introduce tabs there. |
Yes, I think what you want is to write another kind of error type. Feel free to write one. I don't expect the interface for error types to change any time soon, so your workflow should be safe for a while :) |
Actually, this has been working fine for me for a while:
Now I see tabs highlighted and haven't noticed any surprises. If I could explain that better Thanks (from happy ethan-wspace user since 2012) |
I agree that tabs are evil, but when
indent-tabs-mode
is set tot
, I thinkethan-wspace-mode
shouldn't highlight tabs. Do you agree?The text was updated successfully, but these errors were encountered: