kanagawa.nvim icon indicating copy to clipboard operation
kanagawa.nvim copied to clipboard

feat(extra): add emacs port of dragon and lotus theme

Open Szkered opened this issue 1 year ago • 9 comments

Szkered avatar May 18 '23 06:05 Szkered

Hi! I have a question! How do you use these themes on doom emacs? I have tried installing the original kanagawa-theme.el in the .doom/themes folder and then running m-x/load-themes to load it;however, then I get colors which look weird to me. (I have kangawa installed on nvim and it looks very different). Did I make a mistake in installing the themes? I am asking this, because I have tried for months to get this working and I have found no place to ask about the kanagawa-el theme.

dzoidbrg avatar May 18 '23 10:05 dzoidbrg

screenshot This is how my emacs looks like with the kanagawa-el theme

dzoidbrg avatar May 18 '23 10:05 dzoidbrg

screenshot This is how my nvim looks like. Is the emacs theme supposed to look like that or did I misconfigure something. Sorry again for asking here, but I have no other place to ask about the kanagawa theme other than this PR.

dzoidbrg avatar May 18 '23 10:05 dzoidbrg

And are you using the original kanagawa-wave theme? Did you install autothemer ? Let me know what programming language you are using so I can test it.

Szkered avatar May 18 '23 10:05 Szkered

OK thanks! I am using this as theme https://github.com/rebelot/kanagawa.nvim/blob/master/extras/kanagawa-theme.el. I am using rust as a programming language. I will double check if I have autothemer installed

dzoidbrg avatar May 18 '23 14:05 dzoidbrg

Yes, I have it installed. On my emacs side, I have tree-sitter installed, and I just ran load-theme to load kanagawa-theme-el. If you wish, I can post my doom emacs config

dzoidbrg avatar May 18 '23 14:05 dzoidbrg

Can you maybe post a screenshot of one of your kanagawa-themes or the original one with any language so I can see if it is maybe a emacs font or color config problem on my side. Also, thank you so much for helping me with my issue!

dzoidbrg avatar May 18 '23 14:05 dzoidbrg

I tested the theme with some rust code, and I am getting similar result as yours. I think the palette is not 100% aligned with the original kanagawa theme in nvim. If you want to get exactly the same coloring maybe you could try to align them yourself. In emacs, you can find out what is setting the color of a certain text by calling describe-face with your cursor hovering the text. For example you could get something like tree-sitter-hl-face:type. Then you can edit the kanagawa-theme.el file to make the theme matches the original.

Szkered avatar May 19 '23 03:05 Szkered

OK thank you! I just want to know, that it is not a configuration error on my part! I mean, I do quite like it, so I will tune the emacs theme to my needs, but thank you for testing.

dzoidbrg avatar May 20 '23 10:05 dzoidbrg