# dpkg -l | grep emacs ii emacs-dl-canna 1.4-4.1 Canna DL module for emacs20-dl rc emacs20 20.7-13.1 The GNU Emacs editor. ii emacs20-dl 20.7-14.3 The GNU Emacs editor. (Dynamic Loading suppo ii emacsen-common 1.4.15 Common facilities for all emacsen. # dpkg -l | grep canna ii canna 3.5b2-46.2 A japanese input system (server and dictiona ii canna-utils 3.5b2-46.2 A japanese input system (utility). ii emacs-dl-canna 1.4-4.1 Canna DL module for emacs20-dl ii kinput2-canna- 3.0-19 An input server for X11 applications that wa ii libcanna1g 3.5b2-46.2 Canna Runtime Library (Libc6). ii nvi-m17n-canna 1.79+19991117- Multilingualized nvi with Canna. # dpkg -l | grep nvi ii nvi 1.79-20 4.4BSD re-implementation of vi. ii nvi-m17n-canna 1.79+19991117- Multilingualized nvi with Canna. ii nvi-m17n-commo 1.79+19991117- Multilingualized nvi's common files. # dpkg -l | grep ja ii canna 3.5b2-46.2 A japanese input system (server and dictiona ii canna-utils 3.5b2-46.2 A japanese input system (utility). ii doc-debian-ja 2.2.2.2 Debian FAQ and other documents (Japanese) ii doc-linux-ja-t 2002.04.14-1 Linux HOWTOs and FAQs in Japanese (TEXT form ii ja-trans 0.8-1 Japanese gettext message files ii manpages-ja 0.4.0.0.200203 Japanese version of the manual pages (for us ii xfonts-intl-ja 1.2-2.1 International fonts for X -- Japanese. ii xfonts-intl-ja 1.2-2.1 International fonts for X -- Japanese big. ii xmanpages-ja 4.1.0.20011224 Japanese manual pages for X # dpkg -l | grep font ii asiya24-vfont 1-10 Japanese Maru Gothic font in Zeit's Syotai C ii console-data 1999.08.29-24 Keymaps, fonts, charset maps, fallback table ii console-tools 0.2.3-23.3 Linux console and font utilities. ii console-tools- 0.2.3-23.3 Shared libraries for Linux console and font ii defoma 0.11.0 Debian Font Manager -- automatic font config ii libfreetype6 2.0.9-1 FreeType 2 font engine, shared library files ii ttf-xtt-wadala 0.20010818-5 Free Japanese TrueType fonts (gothic) ii ttf-xtt-watana 0.20010818-5 Free Japanese TrueType fonts (mincho) ii watanabe-vfont 1-9 Japanese Mincho font in Zeit's Syotai Club f ii x-ttcidfont-co 13 Configure TrueType and CID fonts for X. ii xfonts-100dpi 4.1.0-16 100 dpi fonts for X ii xfonts-75dpi 4.1.0-16 75 dpi fonts for X ii xfonts-a12k12 1-5 12 dot Kanji & ASCII fonts for X ii xfonts-base 4.1.0-16 standard fonts for X ii xfonts-intl-ja 1.2-2.1 International fonts for X -- Japanese. ii xfonts-intl-ja 1.2-2.1 International fonts for X -- Japanese big. ii xfonts-kappa20 0.394-4 X11 Kappa 20dot Fonts (10x20 8859-1/2/3/15, ii xfonts-marumoj 0.2-6 Roundish fonts (marumoji fonts) for X ii xfonts-scalabl 4.1.0-16 scalable fonts for X ii xfonts-shinono 3-1 Various 12,14,16 dot Japanese Kanji, iso8859 ii xfs 4.1.0-16 X font server
# apt-get install canna # apt-get install emacs-dl-canna # apt-get install nvi-m17n-canna
# vi /etc/locale.gen ja_JP.EUC-JP EUC-jp # locale-gen
$ user-ja-confemacs の設定。なぜか egg を使うようになってた。その他の設定は、日本語でコメントが入る(user-ja-conf コマンドにより)からその都度、好みで。
$ vi ~/.emacs (set-input-method 'japanese-egg-canna) ↓ (set-input-method 'japanese-canna)ちなみに IM のトグルは、emacs では、C-o で、vi では、C-k で。デフォでは。
# apt-get install kon2んで、コンソールで kon を実行すれば(kon と入力)、日本語が表示できるはず。(他人のマシンで設定したのでうろ覚え)
if [ $TERM = linux ]; then kon fi