NetBSD xorg xfce4 に uim-anthy を入れる % cd /usr/pkgsrc/inputmethod/uim options.mk はざっと眺めたけどこのままでよさそう。 PKG_OPTIONS_VAR= PKG_OPTIONS.uim PKG_SUPPORTED_OPTIONS= anthy canna eb gtk qt kde PKG_SUGGESTED_OPTIONS= anthy canna gtk emacs で使いたいので Makefile の以下を変更する。 CONFIGURE_ARGS+= --disable-emacs こう。 CONFIGURE_ARGS+= --enable-emacs ふつーに作る。 % make install clean-depends doc/ELISP を読みつつ .emacs に以下を書いておく。 ;; anthy (when (locate-library "anthy") (load-file "/usr/local/share/emacs/site-lisp/anthy/leim-list.el") (load-library "anthy") (setq default-input-method "japanese-anthy") (setq anthy-wide-space " ") (global-set-key "\C-l" 'toggle-input-method)) .emacs 全般の日本語まわりはこう。 (running-Emacs (set-language-environment "Japanese") (set-default-coding-systems 'euc-japan) (set-terminal-coding-system 'euc-japan) (set-keyboard-coding-system 'euc-japan) (set-buffer-file-coding-system 'euc-japan) (setq default-buffer-file-coding-system 'euc-japan)