manateelazycat / awesome-tab

Emacs package to provide out-of-the-box configuration to use tabs.
384 stars 38 forks source link

Tweak face settings #103

Closed AmaiKinono closed 3 years ago

AmaiKinono commented 3 years ago

The set-face-attributes form is not needed.

Besides, there's a little logical inconsistency in this code: If you want to modify tab-line, then awesome-tab-display-line should be changed to 'tab-line; if you just want to make sure the display is correct no matter on Emacs 26 or 27, the predicate on Emacs version should be removed. I choose the latter solution.


set-face-attributes 是不需要的。

此外还有一个小的逻辑问题:如果我们只处理 tab-line,那应该直接修改 'tab-line 而不是 awesome-tab-display-line(因为即使是 Emacs 27,用户可能会自定义成用 header-line 显示 tab);如果我们想保证用户看到的效果是对的,不管是 26 还是 27,那应该把版本的判断拿掉。我选择了后一种做法。

manateelazycat commented 3 years ago

Thanks