Skip to content

Commit

Permalink
Improved unicode emoji support
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa Al-hassy committed May 18, 2024
1 parent c3cbeae commit 634cd7f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
18 changes: 15 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -702,9 +702,21 @@ visit all blocks with such a name."
;; Word Completion and Documentation Pop-ups:4 ends here

;; [[file:init.org::*Word Completion and Documentation Pop-ups][Word Completion and Documentation Pop-ups:5]]
(use-package emojify
:config (setq emojify-display-style 'image)
:init (global-emojify-mode 1)) ;; Will install missing images, if need be.
(use-package emojify)



(-let [font-for-emojis "Noto Color Emoji"]
(if (member font-for-emojis (font-family-list))
(set-fontset-font
t 'symbol (font-spec :family font-for-emojis) nil 'prepend)
(message-box "Musa: Install the font!")
;; Download font @ https://fonts.google.com/noto/specimen/Noto+Color+Emoji
;; Double-click on the ttf file then select “install” to have it installed on your system
))
(setq emojify-display-style 'unicode) ;; unicode is the way to go!

(global-emojify-mode 1) ;; Will install missing images, if need be.
;; Word Completion and Documentation Pop-ups:5 ends here

;; [[file:init.org::*Documentation Pop-Ups][Documentation Pop-Ups:1]]
Expand Down
19 changes: 16 additions & 3 deletions init.org
Original file line number Diff line number Diff line change
Expand Up @@ -2842,9 +2842,22 @@ The libraries ~emojify~ and ~emojify-logos~ provides cool items like =:haskell:
with org-mode, so I'm not using them.
:Alternatives:
#+BEGIN_SRC emacs-lisp
(use-package emojify
:config (setq emojify-display-style 'image)
:init (global-emojify-mode 1)) ;; Will install missing images, if need be.
(use-package emojify)



(-let [font-for-emojis "Noto Color Emoji"]
(if (member font-for-emojis (font-family-list))
(set-fontset-font
t 'symbol (font-spec :family font-for-emojis) nil 'prepend)
(message-box "Musa: Install the font!")
;; Download font @ https://fonts.google.com/noto/specimen/Noto+Color+Emoji
;; Double-click on the ttf file then select “install” to have it installed on your system
))
(setq emojify-display-style 'unicode) ;; unicode is the way to go!

(global-emojify-mode 1) ;; Will install missing images, if need be.

#+END_SRC

(use-package emojify-logos
Expand Down

0 comments on commit 634cd7f

Please sign in to comment.