Nei*_*lis 13 macos emacs fonts customization
我正在使用Emacs 23.2.当我使用选项 - >设置默认字体更改默认字体时...它正确切换到我选择的字体.然后我选择选项 - >保存选项以使其永久化.
它将一个节写入我的.emacs的末尾,但它是空的,不包含任何有关字体的内容.此外,在迷你缓冲器中它说"装电池......完成"这看起来有点奇怪.当我重新启动Emacs时,字体恢复为默认值,即Monaco.同样,更改字体大小不会持久,但其他(非字体相关的)自定义设置仍然存在.
谁见过这个?有谁知道如何使字体设置永久?
bos*_*acs 31
尝试M-x customize-face RET default,根据自己的喜好调整,然后"保存以备将来的会话".
编辑:
例如,将以下节添加到我(custom-set-faces)的.emacs中:
(custom-set-faces
'(default ((t (:inherit nil :stipple nil :background "White" :foreground "Black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 130 :width normal :family "Consolas"))))
...
Run Code Online (Sandbox Code Playgroud)
如果您只想设置字体大小和系列(本例中为13pt Consolas),这似乎就足够了:
'(default ((t (:height 130 :family "Consolas"))))
Run Code Online (Sandbox Code Playgroud)
我开始工作的唯一方法是手动修改.emacs文件:
(custom-set-faces
'(default ((t (:height 150 :family "Menlo"))))
)
Run Code Online (Sandbox Code Playgroud)
PS:我在优胜美地