Bleeding Fingers
Bleeding Fingers

Reputation: 7129

How to decrease the font size of mode-bar/line?

After horizontally splitting my frame into 4-5 windows, the info in the mode-line gets truncated. So is there a way to decrease its font size like I do in a buffer so that its text doesn't get truncated?

Upvotes: 5

Views: 4172

Answers (3)

juanleon
juanleon

Reputation: 9410

You can do this, for instance

(set-face-attribute 'mode-line nil :height 60)

Substitute 60 for the height you want. You may use hooks to change the value dynamically depending of some conditions, but afaik all the mode-lines will share same font.

Upvotes: 11

legoscia
legoscia

Reputation: 41648

You can type M-x customize-face RET mode-line, and set the height attribute.

Upvotes: 5

choroba
choroba

Reputation: 242333

Yes, use M-xset-face-fontEntermodelineEnterTab and select the font you like. For some fonts, you might need to specify the size on the 7th place.

-microsoft-Georgia-normal-normal-normal-*-8-*-*-*-*-0-iso10646-1
                                          ^

Upvotes: 3

Related Questions