centaur-tabs
centaur-tabs copied to clipboard
Tab-bar styling issues with Emacs 27.1
Hello,
I've checked the list of issues and could not find any similar issues - apologies if this is in some way a known issue.
I'm testing out any breaking changes with Emacs 27 in my config and am seeing some odd behavior with the tab bar.
Here is the tab-bar as it appears in Emacs 26.3:
With no change to configuration, here's what the tab-bar looks like in Emacs 27.1:
As you can see, the tab-bar seems to cutoff after the last open buffer in Emacs 27.
It also seems like the Tab-bar no longer uses the default font-face in Emacs 27 as compared to Emacs 26, which is resulting in a missing Tab Group icon.
Are there some changes I need to make for Emacs27 in my centaur-tabs config?
Version Info
- Emacs 26.3 / Emacs 27.1 with Spacemacs develop branch
- centaur-tabs v20200821.335
- Windows 10 (v1903)
I am not sure about the font problem.
But background color of the tab bar can be adjusted for tab-line
's custom face.
In an interesting twist, I realized that spacemacs now has a tabs
layer which is based on centaur-tabs. I replaced my additional package install of centaur-tabs with the tabs layer and the background color problem got fixed in Emacs 27.1
I was also able to fix the Tab Group icon by setting centaur-tabs-down-tab-text
in my emacs.d\init.el
file.
The only problem that I'm still seeing is the font-face on the tab name. I've compared the output of M-x list-faces-display
in 26.3 and 27.1 and the settings for centaur-tabs-default
etc. seem identical to me. So I'm not sure why it seems to render differently.
For me, on 27.1 spacemacs after enabling the tabs
layer, my tab line looks like this:
Just a few seconds before the config if fully loads, it renders properly though. What is overwriting it here?
I tried configuring it in custom mode, in my user-config, or as a
:variable
in my configuration layers: no dice.
(Before I enabed the tabs
layer, centaur-tabs wouldn't even load to begin with)
On a few read-only buffers, like, I don't know, the org agenda command menu, it seems to load fine. Upon restarting emacs settings are brought back to default though.
Fix:
(set-face-attribute 'tab-line nil :background "#272822")