LoginSignup
3
3

More than 5 years have passed since last update.

emacs+fcitxで日本語入力ができない

Last updated at Posted at 2018-02-20

現象

archlinux + fcitx-mozcで、emacsだけ日本語入力できない問題に遭遇しました。
locale周りや.xprofileを設定してもダメです。

原因

適切なフォントがインストールされていないためでした。
単に日本語フォントをインストールするだけではダメで、-*-*-*-r-normal--14-*-*-*-*-*-*-*の形式にマッチするフォントがないとXIMが有効にならないようです。

xlsfontsで確認してみると確かにマッチするフォントを入れてませんでした。

sudo pacman -S xorg-xlsfonts
xlsfonts *normal*
# xlsfonts: pattern "*normal*" unmatched

解決方法

とりあえずterminus-fontを入れたら日本語入力できるようになりました。
ちなみに日本語フォントはadobe-source-han-sans-jp-fontsを使ってます。

参考サイト

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3