FBSD111C-NOXのセットアップ

 FBSD111Cのクローンから新規にセットアップし直してみる。

 仮想マシンのセットアップにも飽きてきたので、とにかく実用的に使えるセットアップを目指す。

 ややっこしいので、NOX11は排除した方がいい。NOXが確立すれば排除する。

 

  • freebsd-update fetch
  • freebsd-update install
  • pkg update
  • pkg upgrade →

    The following 1 package(s) will be affected (of 0 checked):

    Installed packages to be UPGRADED:
    pkg: 1.10.3_1 -> 1.10.5

  • portsnap fetch update
  • ホスト名の変更
  • reboot
  • pkg install ja-uim-mozc | & tee log

 インストール終了後、気休めに/etc/rc.confに /usr/local/bin/mozc startを追加。

  • reboot 
  • ~/.uim を作成
  • uim-fepの動作を確認(あいかわらず起動は遅い。/usr/local/bin/mozc startは費必要ないかも
  • # pkg install ja-boiled-mozc-emacs25_nox | & tee log_pkginstall ja-boiled-mozc-emacs25_nox

 biiled-mozcっていうのが、ナニモノか判らない。ググると、

GitHub - tadanagao/boiled-mozc: A wrapper to mozc.el that offers modeless ("boil"ed) input style

 

ゆでもずく!

A wrapper to mozc.el that offers modeless ("boil"ed) input style.

とあり、更に

To use boiled-mozc.el, just add the following code into your .emacs:

(autoload 'boiled-mozc-rK-conv "boiled-mozc"
  "Romaji to Kana-Kanji conversion" t)
(autoload 'boiled-mozc-rhkR-conv "boiled-mozc"
  "Romaji to Hiragana conversion" t)
(global-set-key "\C-o" 'boiled-mozc-rK-conv)
(global-set-key "\M-o" 'boiled-mozc-rhkR-conv)

とあったので、追加。

そのまま試してみても、mozcは有効ではなかったので、一旦リブート。

リブートしてもmozcは無効っぽい。

 

以下の~/.emacs.d/init.elでmozcが有効になる。FBSD111C-DOCから持ってきたが、元々が何処から持ってきたか憶えていない。

% cat ~/.emacs.d/init.el
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(set-language-environment "Japanese")
; 極力UTF-8とする
(prefer-coding-system 'utf-8)
(setq default-input-method "japanese-mozc")
(global-set-key (kbd "C-o") 'toggle-input-method)

;;Setting for boiled-mozc
;
(autoload 'boiled-mozc-rK-conv "boiled-mozc" "Romaji to Kana-Kanji conversion" t)
(autoload 'boiled-mozc-rhkR-conv "boiled-mozc" "Romaji to Hiragana conversion" t)
(global-set-key "\C-o" 'boiled-mozc-rK-conv)
(global-set-key "\M-o" 'boiled-mozc-rhkR-conv)

boiledは必要ない気もする。