summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2020-12-21 17:55:54 -0800
committerFranck Cuny <franck@fcuny.net>2020-12-21 17:55:54 -0800
commit644130f2f88cfcd800c5209c80d678cc1d526801 (patch)
tree5684bb988dd64d2f2ddf5c6028cd7675ddce55d8
parentemacs: fix issue with org-mode (diff)
downloademacs.d-644130f2f88cfcd800c5209c80d678cc1d526801.tar.gz
emacs: handle correctly some unicode characters
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-ui.el7
1 files changed, 6 insertions, 1 deletions
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)