meow-edit / meow

Yet another modal editing on Emacs / 猫态编辑
GNU General Public License v3.0
1.07k stars 128 forks source link

Number for meow-next-word aren't colored in emacsclient #568

Closed Esnos33 closed 2 months ago

Esnos33 commented 2 months ago

When emacs is opened with emacsclient -c -a="" there are no color around numbers, but if I open emacs with emacs, everything works. Using default theme.

emacs emacsclient

EDIT: Just add (server-start) to config, start emacs and then next emacsclients will work as intended.

DogLooksGood commented 2 months ago

By default, meow calculates the faces based on current theme. It may not work well with some themes in terminal, but you can specify those faces.

First you want to disable meow-use-dynamic-face-color. Then customize this face: meow-use-dynamic-face-color.

Esnos33 commented 2 months ago

@DogLooksGood Thanks for answer, but I don't use terminal version of emacs, only gui, and why does meow-use-dynamic-face-color would work different depending on if I open emacs via emacs or emacsclient -c -a=""? Trying to learn emacs.

DogLooksGood commented 2 months ago

Ah, sorry, I misunderstood your question. I can't reproduce with emacsclient -c -a="". This is how it looks in my case.

Do you have any theme related settings? How did your emacs server started, emacs --daemon vs (server-start)? image

Esnos33 commented 2 months ago

I just made test config where there is only meow setup and if I use emacs --daemon in terminal then emacsclient -c I don't have colors, but If I use emacs then M-x server-start or put server-start in config, then everything works. I'm using arch linux on sway, and my emacs version is 29.2 if that helps.

Esnos33 commented 2 months ago

I think I will just use emacs with (server-start) in config. I still can't autostart emacs with sway, because emacs on autostart from systemd don't see .bashrc and can't find agda related stuff. I'm telling this, because I just wanted to say this isn't big deal, opening emacs from terminal and then using client, but this isn't smoothest first emacs experience. If not for meow, I wouldn't use emacs at all, so for me you made big difference DogLooksGood, thanks.