doomemacs / doomemacs/core

(setq +ligatures-extras-in-modes nil) does not disable extra ligatures (like fn->λ)

Open
#5,738 8 comments 0 reactions 0 assignees View on GitHub
:ui ligatures is:bug status:unconfirmed
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

I expected `(setq +ligatures-extras-in-modes nil)` to make `λ` not replace `fn` in clojure-mode.

### What actually happened?

I couldn't disable the `λ` ligature via `(setq +ligatures-extras-in-modes nil)`, https://github.com/hlissner/doom-emacs/issues/1807, or any other method I tried short of removing ligatures.

I have am using just `ligatures`, not `(ligatures +extra)`.

### Describe your attempts to resolve the issue

I don't remember everything I tried at this point, I'm sorry. `+ligatures-extras-in-modes` seemed like the right one from reading the source. I remember trying some 5 or 6 other vars that I got from searching issues here and google, but didn't get anywhere.

I also tried changing the source manually to debug where and why I kept getting this ligature, and it seemed to be controlled by these lines https://github.com/hlissner/doom-emacs/blob/bac7ccb970847125919ce32043dce84cfcca16b8/modules/ui/ligatures/config.el#L154-L158

### Steps to reproduce

1. Configure emacs@28 on mac to use doom emacs with clojure mode and ligatures (just `ligatures`, not `(ligatures +extra)`.
2. Open a clojure fine with a `(fn [])` expression.
3. See `λ` instead of `fn`
4. Set `(setq +ligatures-extras-in-modes nil)` in your config.el
5. run `doom sync` and restart emacs
6. `λ` is still there

### System Information

https://pastebin.com/tHiybPMv

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.