emacs 放大/缩小 [英] emacs zoom in/zoom out

查看:22
本文介绍了emacs 放大/缩小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在 emacs 上放大和缩小(动态改变字体大小,相当流畅)?

Is there a way to zoom in and out (dynamically change the font size, quite smoothly) on emacs?

推荐答案

Try Cx C-+Cx C--;即 Control-x Control-减号/Control-加上.

Try C-x C-+ and C-x C--; that is, Control-x Control-Minus/Control-Plus.

在一个组合(Cx C-+Cx C--)后,连续的 +- 增加或减少文本比例,而无需再次键入 Cx C-.

After one combination (C-x C-+ or C-x C--), successives + or - increase or decrease the text scale without typing C-x C- again.

由sawa添加

我查找了分配给上述键的函数,发现它们是text-scale-increasetext-scale-decrease.我将以下内容添加到我的配置文件中,以便我可以执行 Ctrl+Scroll 来放大/缩小.很有用.

I looked up the function that was assigned to the keys mentioned, and found out that they are text-scale-increase and text-scale-decrease. I added the following to my configuration file so that I can do Ctrl+Scroll to zoom in/out. It is useful.

(global-set-key [C-mouse-4] 'text-scale-increase)
(global-set-key [C-mouse-5] 'text-scale-decrease)

这篇关于emacs 放大/缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆