HHKBの設定

HHKB は英語配列を手に入れたので、かな漢字変換をどのキーに割り当てるかの設定が必要だった

基本は、スペースキーの左右をメタキーとして左側を英数、右側を日本語のそれぞれのモードの選択としたかったので、以下のように設定していった。

DIP スイッチの設定

スペースキーの左右をメタキーとしたいので、SW1、SW2はデフォルトのHHKモードにする(SW1:OFF, SW2:OFF)

Linux

fcitx の設定

fcitxの設定ツールで、 入力メソッドを有効にする -> 「変換」 入力メソッドをオフにする -> 「無変換」 に割り当てる。

emacs の設定

emacs では、mozc.el を使っているので、次のように設定した。

init.el
;;;
;;; mozc の利用
;;;
(leaf mozc
  :ensure t
  :require t
  :custom
  (default-input-method . "japanese-mozc")
  (mozc-candidate-style . 'popup)  
  :init
  (set-language-environment "Japanese")
  :config
  (leaf mozc-popup
    :ensure t
    :require t
    )
  :bind(([henkan] . (lambda () (interactive)
		      (when (null current-input-method) (toggle-input-method))))
        ([muhenkan] . (lambda () (interactive)
		        (inactivate-input-method)))))

(defadvice mozc-handle-event (around intercept-keys (event))
  "Intercept keys muhenkan and zenkaku-hankaku, before passing keys
to mozc-server (which the function mozc-handle-event does), to
properly disable mozc-mode."
  (if (member event (list 'zenkaku-hankaku 'muhenkan))
      (progn
	(mozc-clean-up-session)
	(toggle-input-method))
    (progn ;(message "%s" event) ;debug
      ad-do-it)))
(ad-activate 'mozc-handle-event)

(参考) 変換/無変換キーで mozc.el を on/off する - pyopyopyo - Linuxとかプログラミングの覚え書き -