smart-mode-line
smart-mode-line copied to clipboard
[Feature] Position in buffer?
I was quite charmed of Spaceline. But don't worry, I love the smart-mode-line
much more, especially the prefixes for directories.
But I'm missing features in Smart Mode Line, after trying the Spaceline.
For example, you see directly in which positon of the buffer you currently are. For example, in SML when you're near the end or the top, you see Bot
or Top
, which I found it confusing. So I was wondering if this could be disabled in the customization menu?
And I tried to implement he buffer position indicator implemented in Smart Mode Line, from this:
but nothing appears on my mode line after implementing the code. My Elisp profiency is somewhat limited. So I was wondering if it would be a big deal to having these buffer indicator in the Smart Mode Line?
For example, you see directly in which positon of the buffer you currently are. For example, in SML when you're near the end or the top, you see Bot or Top, which I found it confusing. So I was wondering if this could be disabled in the customization menu?
No, there's no configuration option to change those Top/Bot into percentages. That's because SML doesn't implement this functionality, it just hooks onto Emacs functionality and Emacs doesn't support that.
And I tried to implement he buffer position indicator implemented in Smart Mode Line, from this: ... but nothing appears on my mode line after implementing the code. My Elisp profiency is somewhat limited. So I was wondering if it would be a big deal to having these buffer indicator in the Smart Mode Line?
It would certainly be a welcome feature. What code do you have so far?
For example, in SML when you're near the end or the top, you see Bot or Top, which I found it confusing
@ReneFroger Just as an aside, isn't this the same as in vim? Or is there a way to change this in vim?
I can confirm Emacs 25.1.1 supports position in percentages.
Beyond that, I'm not sure how to get the visual "loadbar" widget... Beyond that these seem like ok alternatives, though I've never been comfortable with minimaps: https://github.com/zk-phi/sublimity https://github.com/dengste/minimap