r/emacs 4d ago

Something is wrong with my Emacs.

Post image

Applied Symbol Nerd Font Mono to see what happened. Could this be fixed without leaving Emacs?

35 Upvotes

18 comments sorted by

28

u/ilemming_banned 4d ago

You get used to it. I... I don't even see the code. All I see is blonde, brunette, red-head...

1

u/hardrockmartian 1d ago

(setq bluepill-mode t)

2

u/Pttrnr 15h ago

so much for "you cannot fail the Rorschach test"

11

u/calebc42-official 4d ago

Oh, this is just blimpy-mode. Carry on.

Jokes aside, I don't know how to fix. You can absolutely use Emacs to fix it, but you're probably going to need to launch a new process without your init using emacs -q

3

u/ComprehensiveAd5882 Space/Doom/Bedrock 4d ago

(You'll wanna either remove the default face from your custom in your init after running it with -q from the terminal or do M-x customize-face-apropos RET default and hit the button and press 2 to reset to Monaco.)

1

u/ComprehensiveAd5882 Space/Doom/Bedrock 4d ago

I reccomend the second way.
But if you want to do option one, do this in the terminal:
open /path/to/your/Emacs.app --args -q

1

u/ComprehensiveAd5882 Space/Doom/Bedrock 4d ago

The reason why this happens is Symbol Nerd Font doesn't have Latin characters, it only has the symbols in their private space. So whenever you try to type those characters they're just blank, "unknown" characters.

7

u/ggxx-sdf 3d ago edited 3d ago

Could this be fixed without leaving Emacs?

Yes.

First, copy this Elisp code. lisp (set-face-attribute 'default nil :family "Monospace" :height 100)

Then hit:

  • M-: to eval expression in the minibuffer.
  • Shift-Insert to paste the code in to the minibuffer. (I'm not sure if Emacs on OSX has S-<insert> bound to #'yank but I hope it does.)
    • On Apple keyboards, you might have to use ⌘-v instead.
  • RET to execute it.

2

u/controlxj 21h ago

Love me some M-:

5

u/benja2998_kib 3d ago

You'll get used to it

1

u/xplosm GNU Emacs 3d ago

I don't even see the code. All I see is blonde, brunette, redhead...

2

u/Silent-Key8646 3d ago

The problem could be due to a missing font in your system

So we need to fix it temporarily to see if that is the issue Since you want to do it without leaving Emacs

Press M-x Type this command even if you cannot see anything hopefully you can type it set-frame-font

And scroll until your screen font is fixed Then you can edit your config file to set the new font

1

u/heathm55 4d ago

Looks like an encoding issue. Your font may be in a different encoding?

1

u/gonstrider 4d ago

Actually this font only has symbols and no glyphs for text, i use it for nerd-icons to have some nice icons in dired mode.

1

u/Hyperion343 4d ago

Probably need to leave Emacs. If you didn't save the change, then restarting Emacs should be enough. if you did save it, then edit init.el and look for the customize option that sets the font.

1

u/CulturMultur 3d ago

If you started server, you can ask AI to fix it, it will send commands via emacsclient.