diff options
| author | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2019-11-19 21:56:07 +0100 |
|---|---|---|
| committer | KΓ©vin Le Gouguec <kevin.legouguec@gmail.com> | 2019-11-19 21:59:43 +0100 |
| commit | 788b9be5e786d93d315e592fbd8064da54e06d58 (patch) | |
| tree | a7431ed60c2772b05d972f80ae7042339c573a90 | |
| parent | 4d94629c9e0b22d3308f921fee6d039c66626bd2 (diff) | |
| download | dotfiles-788b9be5e786d93d315e592fbd8064da54e06d58.tar.xz | |
Improve font setup
Color fonts improve emoji readability IMO. Noto's emoji font does not
cover π nor π though.
While in there, use simplify a version check.
| -rw-r--r-- | .emacs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -10,7 +10,7 @@ ;; NB: starting from Emacs 27, package-initialize is automatically ;; called before loading the user's init file, unless ;; package-enable-at-startup is set to nil in the early init file. -(when (version< emacs-version "27") +(when (< emacs-major-version 27) (package-initialize)) (setq custom-file "~/.emacs-custom.el") @@ -312,7 +312,9 @@ (my/froggify))) ;; Font stuff (π€· π€¦) -(set-fontset-font t nil "Symbola") +(set-fontset-font t 'symbol "Symbola" nil 'prepend) +(when (>= emacs-major-version 27) + (set-fontset-font t 'symbol "Noto Color Emoji" nil 'prepend)) (defun my/project-root () (when-let ((project (project-current))) |
