在设置完成中文字体后,使用emacs GUI一切正常,但是当用emacs -nw打开时,会报错,请问我该如何修改,使得终端也能正常打开呢?
我的字体设置如下:
(set-face-attribute
'default nil :font "Ubuntu Mono 14")
(dolist (charset '(kana han symbol cjk-misc bopomofo))
(set-fontset-font (frame-parameter nil 'font)
charset
(font-spec :family "Sarasa Mono SC Nerd" :size 14)))
终端错误信息如下:
Debugger entered--Lisp error: (error "Fontset ‘tty’ does not exist")
set-fontset-font("tty" kana #<font-spec nil nil Sarasa\ Mono\ SC\ Nerd nil nil nil nil nil 14 nil nil nil nil>)
(while --dolist-tail-- (setq charset (car --dolist-tail--)) (set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "Sarasa Mono SC Nerd" :size 14)) (setq --dolist-tail-- (cdr --dolist-tail--$
(let ((--dolist-tail-- '(kana han symbol cjk-misc bopomofo)) charset) (while --dolist-tail-- (setq charset (car --dolist-tail--)) (set-fontset-font (frame-parameter nil 'font) charset (font-spec :family "Sara$
eval-buffer(#<buffer *load*-769883> nil "/home/mirasire/.emacs.d/lisp/init-better-default.e..." nil t) ; Reading at buffer position 1228
load-with-code-conversion("/home/mirasire/.emacs.d/lisp/init-better-default.e..." "/home/mirasire/.emacs.d/lisp/init-better-default.e..." nil t)
require(init-better-default)
eval-buffer(#<buffer *load*> nil "/home/mirasire/.emacs.d/init.el" nil t) ; Reading at buffer position 251
load-with-code-conversion("/home/mirasire/.emacs.d/init.el" "/home/mirasire/.emacs.d/init.el" t t)
load("/home/mirasire/.emacs.d/init" noerror nomessage)
startup--load-user-init-file(#f(compiled-function () #<bytecode 0x158a813f9795>) #f(compiled-function () #<bytecode 0x158a81458779>) t)
command-line()
normal-top-level()