前々回の記事の続き。
Debian の im-config で fcitx を有効にすると日本語入力に Mozc を利用できるようになるが、この Mozc を Emacs でも利用するためには .emacs でも設定する必要がある。
まずパッケージ emacs-mozc を入れる。
1 | sudo apt-get install emacs-mozc |
次にこれを利用する設定をおこなう。
1 2 3 4 5 6 7 8 | ;; emacs-mozc のロード (require 'mozc) ;; 日本語入力を japanese-mozc に (setq default-input-method "japanese-mozc") ;; 日本語入力切り替えのキーを定義 (global-set-key (kbd "<zenkaku-hankaku>") 'toggle-input-method) |
これで以下のように Emacs でも Mozc が利用できるようになる。
