この辺りで
https://w.atwiki.jp/ntemacs/pages/48.html
https://ploversky.net/archives/463
WSL使ってる場合、Windows側のGoogle日本語入力と連携するのもお勧めです