-
Notifications
You must be signed in to change notification settings - Fork 54
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
sml/setup and nyan-mode #156
Comments
Yeah, nyan-mode is probably making some assumption about the mode-line that is broken by sml. Because it's so corner case, and because you've already found a workaround, it's unlikely that I'll have the time to fix this. If you'd like to investigate, try looking at nyan-mode's source code to understand how does it detect the its own presence in the mode-line.
Indeed, there's even a feature request asking for an off switch. Feel free to try your hand at it if you'd like. :-) |
Yes, the solution already works fine.
I should have checked that before asking. Thanks for answering my question. I'm gonna close this. |
The package is awesome. Here I'm just reporting a trivial problem that I'm trying to solve. I think I need some help.
I use emacs nyan-mode for fun. I noticed that when I run
M-x eval-buffer
in the file which has(nyan-mode t)
in it, since it is evaluated and will run again, nyan bar becomes two. It works fine when I haven't turn on smart-mode-line. It's not a big deal, but now that there is something just not compatible between these two, I'm curious and I haven't figured out why :( Sometimes I'm just lazy and useeval-buffer
a lot. Now I used an if-else to detour this problem(if nyan-mode () (nyan-mode t))
Therefore nyan-mode won't be set again when it is already set.
Before
After
I'm also reading and learning from your code and trying to solve and contribute. Currently the code doesn't have a function to indicate whether the smart-line-mode is on or off and seems there is no way to turn smart-mode-line off once it is on (sml/setup). Do you think that adding such functions could be handy when config this package?
I don't have too much experience in elisp, please correct me and give me some advice if there is anything I misunderstand, thanks!
The text was updated successfully, but these errors were encountered: