emacs

hkjels 2025-02-11T10:12:28.988359Z

So. I recently installed Emacs from source and there are obviously some recent changes to Eglot. One being an indicator in the margin which by default is set to ElDoc textual hint. However, it appears as if a symbol/icon is missing. I'm thinking I'll need to use a different font, but I'm struggling to figure out what face is actually in use right here.

hkjels 2025-02-11T10:17:59.195249Z

If I set the default face to a nerd-font I get a light-bulb icon. But I assume it's possible to narrow it down a bit

hkjels 2025-02-11T10:18:56.238209Z

Actually. This font looks pretty good. I'll just try it on for a while 🙂

Kirill Chernyshov 2025-02-11T10:29:20.002139Z

you can "patch" your font with this https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#font-patcher

hkjels 2025-02-11T10:31:23.506779Z

Ahh. Thanks!

a13 2025-02-11T11:11:13.241489Z

does something like

(set-fontset-font t 'symbol
                  (font-spec :family
                             (if (eq system-type 'darwin)
                                 "Apple Color Emoji"
                               "Symbola"))
                  nil 'prepend)
help?

a13 2025-02-11T11:15:38.530759Z

though in my case dejavu serif is used

a13 2025-02-11T11:20:24.518059Z

so, probably in your case something like

(set-fontset-font t ? (font-spec :family "Nerd Fonts") nil 'prepend)
may help (not sure what's the proper family for nerd fonts)

practicalli-johnny 2025-02-11T16:43:22.375519Z

FYI: there are lots of common fonts that have already been pre-patched with nerd-font icons https://www.nerdfonts.com/font-downloads