Skip to content

Instantly share code, notes, and snippets.

@don9z
Created October 23, 2012 09:35
Show Gist options
  • Save don9z/3937899 to your computer and use it in GitHub Desktop.
Save don9z/3937899 to your computer and use it in GitHub Desktop.
Set font per buffer in Emacs
(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