更改 Aquamacs 中的字体?
我最近需要做一些 lisp 编辑,我发现了 OS X 的漂亮的 Ready Lisp 包,这很棒,除了 Aquamacs 自动使用比例字体(这是愚蠢的,恕我直言),我想改变它为等宽字体。 然而,我并不是一个真正的 EMACS 用户,而且 Aquamacs 中的首选项菜单不太清楚在哪里以及如何进行这样的更改。
I've recently had a need to do a bit of lisp editing and I found the nifty Ready Lisp package for OS X, which is great, except Aquamacs automatically uses a proportional font (which is idiotic, IMHO) and I want to change it to a monospace font. However, I'm not really much of an EMACS user, and the preferences menu in Aquamacs is less than clear on where and how one might make such a change.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在Aquamacs 2.1中,您可以通过“选项”->“外观”->“文本模式字体”来设置字体...这会弹出标准字体选择器窗口,选择您喜欢的字体。 然后,当您退出 emacs (Cx Cc) 时,系统会提示您保存选项,请按“y”。
In Aquamacs 2.1, you can set the font through Options->Appearance->Font for Text Mode... That brings up the standard font chooser window, choose the font you like. Then, when you exit out of emacs (C-x C-c) you'll be prompted to save options, hit "y".
这是我在 OS X 的 .emacs 中的内容:
现在,我不确定 Bitstream Vera 是否是 OS X 上的标准,因此您可能必须下载它或选择不同的字体。 您可以通过在 ELisp 缓冲区中运行
(x-list-fonts "searchterm")
来搜索 X 字体名称(例如*scratch*
- 要运行它,请键入然后在同一行输入Cj
)。This is what I have in my .emacs for OS X:
Now, I'm not sure Bitstream Vera comes standard on OS X, so you may have to either download it or choose a different font. You can search the X font names by running
(x-list-fonts "searchterm")
in an ELisp buffer (e.g.*scratch*
- to run it, type it in and then typeC-j
on the same line).来自 EmacsWiki Aquamacs 常见问题解答:
还有等宽字体的建议 - Monaco 或“Vera Sans Mono”。
From the EmacsWiki Aquamacs FAQ:
There are also recommendations for monospaced fonts - Monaco or "Vera Sans Mono".
这是我使用的:
您可以在 .emacs 文件中设置它,例如:
您可以从 dejavu-fonts.org
this is the one I use:
You can set it in .emacs file like:
You can download it from dejavu-fonts.org
快进十年,对于最近的 Aquamacs(如版本 3.3),请参阅默认设置固定宽度的好解决方案 https://emacs.stackexchange.com/questions/45135/change-permanently-font-size-in-aquamacs
对于那些非常不耐烦的人来说,这是相关的,但请投票这个答案,用户@nega值得赞扬
Fast forward a decade, for recent Aquamacs like ver 3.3 please see the nice solution for setting a fixed-width by default at https://emacs.stackexchange.com/questions/45135/change-permanently-font-size-in-aquamacs
Here's the relevant bit for those who are REALLY impatient but please go upvote that answer, user @nega deserves credit here