在config.el里设置如下 ; font (setq doom-font (font-spec :family “AR PL UMing CN” :size 16 :weight 'light) doom-variable-pitch-font (font-spec :family “sans” :size 13))
现在问题是如果用emacs -daemon打开再执行emacsclient打开文本看到的不是想要的UMing CN字体,不确定是config.el没执行到还是配置后面又被更改?
用emacsclient打开文本的时候是执行如下脚本,会不会是和其中用的选项有关系?
#!/bin/bash -e
if [[ “$DISPLAY” ]]; then
frame=emacsclient -a '' -e "(member \"$DISPLAY\" (mapcar 'terminal-name (frames-on-display-list)))" 2>/dev/null
[[ “$frame” == “nil” ]] && opts=’-c’ # if there is no frame open create one
[[ “${@/#-nw/}” == “[email protected]” ]] && opts="$opts -n" # don’t wait unless we’ve asked to run in a terminal
else
opts=’-nw’
fi
exec emacsclient -a ‘’ $opts “[email protected]”
///////////////////////////////////////////////////
如果用emacs直接打开文本,就能看到正确字体