Use prettify-symbols-mode to enable Iosevka ligatures for GNU Emacs
Recently, I switched back to GNU Emacs from emacs-mac-port1 for better performance. And there are 3 things that are missing from GNU Emacs but are supported by emacs-mac-port:
- Font Ligatures
- Emoji support
org-protocol://,mailto://link handling
This post is a summary for the way I used to enable font ligatures for GNU Emacs, based on the scripts2 provided by @mrkgnao.
Install haskell if you haven't done it.
brew cask install haskell-platform
Run haskell repl
ghci
Generate
parameters.tomlandprettify-symbols-alistfor latter Emacs configurations:load IosevkaConfigGen toToml toElisp
- Get/Clone Iosevka3 source code
- Append the contents in
parameters.tomltoIosevka/parameters.toml Install Iosevka's dependencies
brew install nodejs ttfautohint otfcc-mac64
Build custom Iosevka
npm install make custom-config make custom
- Set
prettify-symbols-alistin your Emacs init files Enable
prettify-symbols-mode(setq prettify-symbols-unprettify-at-point t) (global-prettify-symbols-mode +1)
Footnotes:
1
For the way to enable font ligatures for emacs-mac-port, you can check this post: Enabling Font Ligatures in emacs-mac-port - dsdshome