Recently changed a system, now with Mac system.
When Emacs is turned on, Chinese support is not very good. Some places can be displayed. In the gaze of the. El file, this box is shown as a mouth-to-mouth, mouth-mouth port. For example, as seen in the
Looking for a long day. is due to a problem with Chinese fonts. Just set the Chinese font to the right.
Once in Linux under the Chinese support is very good, without the formulation of the text body can be displayed.
The formulation code such as the following (put it in the. emacs file or in the Init.el is OK):
;; -----------------------------------------------------------------------------;; Setting font for Mac system;; -----------------------------------------------------------------------------;; Setting 中文版 Font (set-face-attribute ' default Nil:font "Monaco 12");; Chinese font formulation (dolist (CharSet ' (Kana han symbol cjk-misc bopomofo)) (Set-fontset-font (frame-parameter nil ' fon T) CharSet (font-spec:family "Kaiti SC": size 14));; Note:you can Chang "Kaiti SC" to "Microsoft Yahei" or other fonts
Once again, the effect of opening Emacs is:
Successfully solve Emacs garbled problem!
!
Set Chinese font for Emacs under Mac system, solve garbled problem