2

I know there is already a post asking this, but the author is using Emacs 26.3 and for what I've read starting with Emacs 27 there is now proper support for ligatures, but they should be enabled in some way (?)

I'm on Emacs 28 now, and I'd like to know the steps to obtain proper ligatures for my font.

Btw I use Arch

Drew
  • 75,699
  • 9
  • 109
  • 225
  • 1
    What have you tried? Is the other solution working for you? Which part don't you like about it? And please point to "what I've read". – Stefan Mar 22 '20 at 14:19
  • I've not tried anything because I don't know where to start. I found [a guide for another font](https://github.com/microsoft/cascadia-code/issues/153#issuecomment-548622886) but nothing for JetBrains Mono – Francesco Noacco Mar 23 '20 at 15:34
  • The link in your question describes two ways to enable ligatures for JetBrains Mono. Have you tried them? Note that neither should require anything newer than emacs-26 – rpluim Mar 24 '20 at 08:33
  • I linked to a specific answer because with emacs 27 there now is native support for ligatures without using prettify-symbols and the like. My question is how to enable them. – Francesco Noacco Mar 25 '20 at 09:37

2 Answers2

1

I think you misunderstand what's been included in Emacs 27. Emacs 27 includes a new font backend based on the HarfBuzz library. The front end bits still need to be worked on according to Eli Zaretskii in this reddit post

I'm wondering if anyone is working on native support

It's already supported in Emacs 27, but someone should code the Lisp part of that: define the character sequences to be ligated, figure out when and how to enable which parts of them, etc.

Patches welcome.

nega
  • 3,091
  • 15
  • 21
1

For Emacs 27.1 I had success with Mickey Petersen's ligature.el

The requirements are pretty specific, but the installation instructions worked without modification for JetBrains Mono

Chen Levy
  • 385
  • 3
  • 12
  • Thank you, I found some time ago a table for jetbrains mono and I just copied it over to [my config](https://gitlab.com/noaccOS/dotfiles/-/blob/master/.config/doom/config.el#L74) – Francesco Noacco Nov 05 '20 at 14:32