简体   繁体   English

emacs字体自定义,以减轻眼睛疲劳

[英]emacs font customization for tired eyes

I've been using the emacs that is bundled with the Mac OS X Terminal and it is fine, but it is an older version. 我一直在使用Mac OS X Terminal附带的emacs,它很好,但是它是较旧的版本。 I like it because I can easily control the entire Terminal font size in OS X easily. 我喜欢它是因为我可以轻松地在OS X中控制整个终端字体大小。

I installed the most recent version of emacs which appears to be a different animal. 我安装了emacs的最新版本,这似乎是另一种动物。 It's a pseudo-gui with buttons and it is outside the Terminal environment. 这是带有按钮的伪GUI,位于终端环境之外。 I've been trying to figure out how to adjust the font size of the screen with no luck. 我一直在尝试找出如何调整屏幕的字体大小而没有运气的方法。 Anyone can help? 有人可以帮忙吗?

Maybe I'm dumb but I rather prefer the text-only nature of the older emacs version I was using. 也许我很傻,但是我更喜欢我使用的较早的emacs版本的纯文本性质。 Trying to force a menu/mouse system in there seems to go against the primitive beauty of the system. 试图在其中强制执行菜单/鼠标系统似乎与系统的原始美感背道而驰。

Your basic reference for font customization is: http://www.emacswiki.org/emacs/CustomizingFaces 字体自定义的基本参考是: http : //www.emacswiki.org/emacs/CustomizingFaces

If you don't want to do customization via the emacs customize feature (I don't care for it myself), then this question has a good answer: How to set the font size in Emacs? 如果您不想通过emacs定制功能(我自己不在乎)进行定制,那么这个问题有一个很好的答案: 如何在Emacs中设置字体大小?

As for the gui jibba jabba, here's what I have in my .emacs: 至于gui jibba jabba,这是我的.emacs文件中的内容:

(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))

Turns all of that off. 关闭所有这些。 :-) :-)

edit: 编辑:

I suggest using the same emacs file and have a test for the NextStep libraries used in the GUI.... 我建议使用相同的emacs文件,并对GUI中使用的NextStep库进行测试。

(when (featurep 'ns) 
  ;; do GUI stuff like font fiddling
  )

Type this: 输入:

M-x text-scale-adjust

Then you can use the key: 然后,您可以使用密钥:

  • + : Increasing the default face height by one step. + :将默认面部高度增加一级。
  • - : Decreasing the default face height by one step. - :将默认面部高度降低一级。
  • 0 : Reset the default face height to the global default. 0 :将默认面部高度重置为全局默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM