简体   繁体   English

Emacs + Mac OSX和更改默认字体

[英]Emacs + Mac OSX and changing default font

如何在Emacs 23上使用抗锯齿功能将默认字体更改为摩纳哥。在哪里可以找到具有抗锯齿字体设置的可可的Emacs 23.1专用二进制文件?

There is another question that deals with fonts on Emacs and Mac OS here: How do I set fonts on Emacs for Mac? 这里还有一个关于Emacs和Mac OS上的字体的问题: 如何在Mac的Emacs上设置字体?

I found it easiest to add something like this to my init.el 我发现最简单的方法是在init.el中添加这样的内容

 (set-face-attribute 'default nil
                :family "Inconsolata" :height 145 :weight 'normal)

You can set the font faces via: Mx customize-faces and type default when prompted Customize face (...): There's an option to Save for Future Sessions which will write to your custom.el file, so the face will be set next time you run Emacs. 您可以通过以下方式设置字体外观: Mx customize-faces并在出现提示时键入default Customize face (...):有一个Save for Future Sessions选项,该选项将写入您的custom.el文件,因此接下来将设置该custom.el运行Emacs的时间。

There are two distributions which are popular 有两种流行的发行版

Both are excellent binary distributions. 两者都是出色的二进制分布。

I grab my OS X Emacs binaries from http://atomized.org/wp-content/cocoa-emacs-nightly/ . 我从http://atomized.org/wp-content/cocoa-emacs-nightly/中获取了OS X Emacs二进制文件。

You can find the settings for the default font in Mx customize , then once inside the customize menu, you follow this path: -> Faces -> Basic Faces -> Default . 您可以在Mx customize找到默认字体的设置,然后在自定义菜单中,遵循以下路径: -> Faces -> Basic Faces -> Default

如果您安装了xcode,则可以自己构建emacs,而无需使用多余的东西,它使用anti-alias monaco作为默认字体。

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

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