From 644130f2f88cfcd800c5209c80d678cc1d526801 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Dec 2020 17:55:54 -0800 Subject: emacs: handle correctly some unicode characters --- emacs.d/custom/fcuny-ui.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'emacs.d/custom') diff --git a/emacs.d/custom/fcuny-ui.el b/emacs.d/custom/fcuny-ui.el index 289b861..5daef2e 100644 --- a/emacs.d/custom/fcuny-ui.el +++ b/emacs.d/custom/fcuny-ui.el @@ -57,7 +57,12 @@ (setq ns-use-native-fullscreen nil) (setq mac-allow-anti-aliasing t)) (when (memq window-system '(x)) - (set-frame-font "Source Code Pro-11"))) + (set-frame-font "Source Code Pro-11") + ;; this is a fall back in the case we have unicode characeters. + ;; For example, with this settings, the following source is + ;; rendered correctly 😇 😀 and 🤢 + (set-fontset-font "fontset-default" nil + (font-spec :name "Noto Color Emoji")))) (use-package hl-line :hook ((prog-mode text-mode conf-mode special-mode) . hl-line-mode) -- cgit 1.4.1