Tweaks to the symbols with Mac and Linux
This will have to do until I can get ligatures working again on the Mac.
This commit is contained in:
parent
0761dc4954
commit
71e966668a
1 changed files with 22 additions and 16 deletions
|
@ -377,10 +377,16 @@ And some keybindings to call them:
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Emojis, Icons and Whatnot
|
* Emojis, Icons and Whatnot
|
||||||
In Emacs 28.1, we have better Unicode 14 support. Which means, we need to install [[https://github.com/googlefonts/noto-emoji][Noto Color Emoji]]. Currently, my systems, seems to work just fine, but I’m leaving this code here in case I have issues, as I might use what Apple supplies when on a Mac (thanks [[http://xahlee.info/emacs/emacs/emacs_list_and_set_font.html][Xah Lee]]):
|
Sometimes two symbols should really be one, for instance:
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
;; set font for symbols
|
(add-hook 'text-mode-hook (lambda ()
|
||||||
(set-fontset-font t 'symbol
|
(push '("!?" . "‽") prettify-symbols-alist)))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
In Emacs 28.1, we have better Unicode 14 support. Which means, we need to install [[https://github.com/googlefonts/noto-emoji][Noto Color Emoji]]. Currently, my systems, seems to work just fine, but I’m leaving this code here in case I have issues, as I might use what Apple supplies when on a Mac (thanks [[http://xahlee.info/emacs/emacs/emacs_list_and_set_font.html][Xah Lee]]):
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle no
|
||||||
|
;; set font for symbols
|
||||||
|
(set-fontset-font t 'symbol
|
||||||
(cond
|
(cond
|
||||||
((string-equal system-type "darwin")
|
((string-equal system-type "darwin")
|
||||||
(cond
|
(cond
|
||||||
|
@ -389,8 +395,8 @@ In Emacs 28.1, we have better Unicode 14 support. Which means, we need to instal
|
||||||
(cond
|
(cond
|
||||||
((member "Symbola" (font-family-list)) "Symbola")))))
|
((member "Symbola" (font-family-list)) "Symbola")))))
|
||||||
|
|
||||||
;; set font for emoji (should come after setting symbols)
|
;; set font for emoji (should come after setting symbols)
|
||||||
(set-fontset-font t 'emoji
|
(set-fontset-font t 'emoji
|
||||||
(cond
|
(cond
|
||||||
((member "Apple Color Emoji" (font-family-list)) "Apple Color Emoji")
|
((member "Apple Color Emoji" (font-family-list)) "Apple Color Emoji")
|
||||||
((member "Noto Color Emoji" (font-family-list)) "Noto Color Emoji")
|
((member "Noto Color Emoji" (font-family-list)) "Noto Color Emoji")
|
||||||
|
|
Loading…
Reference in a new issue