emacs zoom in/out globally

前端 未结 5 1654
甜味超标
甜味超标 2021-02-05 07:32

I know that I can zoom in/out using C-x C-+, but this applies only to the current file. Once I open another one, the text goes back to the default value and it\'s really tiresom

5条回答
  •  滥情空心
    2021-02-05 08:00

    All of the answers given here, and more, are available on the EmacsWiki page dedicated to the question of setting and changing font size, including changing it incrementally.

    The answer from @abo-abo is on the right track, regardless of whether you think the size he used in the example code was too big, and regardless of whether the solution does not address incremental adjustment.

    The answer from @juanleon essentially makes text scaling simulate changing the default character size (@abo-abo's answer).

    The point of text scaling is to scale the buffer text (one buffer, no matter where it is shown), not the frame text (all buffers shown in the frame). But if you want all buffers to have their text size changed in a given frame then there is no reason to bother with text scaling in that case: just change the font size.

    You can do either or both (scale the buffer text everywhere or zoom a frame), and do so incrementally, using the same command, if you use command zoom-in/out from library zoom-frm.el.

    On the other hand, if you really do want to incrementally change the text size of all buffers in all frames, then the best approaches are either (1) @juanleon's suggestion or (2) incrementally zoom the standard face default.

    To do the latter, you can use commands zoom-all-frames-in and zoom-all-frames-out in library zoom-frm.el

提交回复
热议问题