archlinux emacs 无法自动加载摩纳哥字体

archlinux emacs can't autoload monaco-fonts

我在archlinux中安装了AUR的monaco字体,并设置了emacs的字体为monaco,但是emacs启动时并没有加载monaco字体,我必须在启动emacs时手动将字体设置为monaco,可以有人给我一些提示吗? 这是我的 .emacs.d/init.el:

的一部分
(custom-set-faces


'(default ((t (:family "Monaco" :foundry "unknown" :slant normal :weight normal :height 128 :width normal)))))

我发现 (custom-set-faces ...) 在这种情况下没有意义,我使用 https://superuser.com/ 中找到的以下代码并成功。

(set-frame-font "Monaco 14" nil t)

(add-to-list 'default-frame-alist
             '(font . "Monaco 14"))