Created
October 23, 2012 09:35
-
-
Save don9z/3937899 to your computer and use it in GitHub Desktop.
Set font per buffer in Emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun enter-my-chinese-writing-mode () | |
"Set font in current buffer" | |
(interactive) | |
(setq buffer-face-mode-face '(:family "Microsoft YaHei")) | |
(buffer-face-mode)) | |
(defun leave-my-chinese-writing-mode () | |
"Unset buffer face" | |
(interactive) | |
(buffer-face-mode -1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment