-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Replace spacemacs-centered-buffer-mode
with olivetti
#9488
Comments
There is also |
@mwillsey Develop branch has updated The usage of extra buffers is a trade off for having more features like perfectly centering buffer content without squeezing or stretching it - the process of calculation the content width can be costly for huge buffer but we can add buffer size limitation and if the buffer is too long it will center to some value. On the other hand, replacing @microamp If you are using develop try cc @syl20bnr |
One feature |
Thank you @mwillsey for creating this thread! I am a new spacemacs user who relies on the center-window for almost every application I use, and the default has been crashing my emacs horribly almost every time I invoke it. Olivetti, on the other hand, works without issue. I second the proposal to replace the default with olivetti, as it works without issue, while centered-buffer-mode still has serious issues more than one year later--or at least missing default parameters that are not mentioned in any easily accessible documentation. |
@xoihiox We have already replaced it with |
On large monitor, I find it very helpful to have a window center the buffer contents. This is especially useful when only one window is open; otherwise the text is all the way to the left side of the screen.
spacemacs-centered-buffer-mode
does the trick, but it has some issues. First of all, it creates a duplicate buffer. This makesSPC-TAB
to quickly switch buffers annoying, because you end up switching between the centered and un-centered versions. Second, I've encountered occasional (but pretty major) performance issues with the mode that seem to be linked to the width of Emacs. I won't go into detail here.I propose replacing
spacemacs-centered-buffer-mode
witholivetti
. I've been using this for a while, and it's fantastic. It simply centeres the buffer contents without creating duplicate buffers or the performance issues I saw with the spacemacs mode.I've got something like the following in my
.spacemacs.d/init.el
:If people think this is a good idea, I'd be happy to submit a PR. It should be a simple fix, mostly adding a small dependency and deleting the old code.
The text was updated successfully, but these errors were encountered: