Set Chinese fonts for emacs in mac to solve the garbled Problem
Recently I changed the system and now I am using the mac system.
When emacs is enabled, Chinese support is not very good. Some items can be displayed in the. el file comment, as shown in
After searching for half a day, it is because of the Chinese font problem. You only need to set the Chinese font.
In the past, Chinese characters in Linux were supported very well and can be displayed without the need to prepare Chinese fonts. <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + xeTWxrT6wuvI58/ghost + PHByZSBjbGFzcz0 = "brush: java;" >;;;;setting font for mac system; ghost ;;-----------------------------------------------------------------------------;; setting English Font (set-face-attribute 'default nil: font "Monaco 12 ");; chinese Font Chinese font (dolist (charset '(kana han symbol cjk-misc bopomofo) (set-fontset-font (frame-parameter nil' font) charset (Font-spec: family "Kaiti SC": size 14); Note: you can chang "Kaiti SC" to "Microsoft YaHei" or other fonts:
The emacs garbled problem is successfully solved !!