html-mode.el を使用するための設定

html-mode.el を使用するためには以下の設定が必要です。
教育系で mule の起動時設定ファイル /class/ee/skel/.emacs を利用している (/class/hc/bin/setup_hc や ~tutor1/begin を実行している)場合には, すでに利用できるように設定してあります。
  1. html-mode.el を load-path に設定してあるパスに保存する。

  2. 以下の式を ~/.emacs-mine などに記述する。
    (autoload 'html-mode "html-mode" "HTML major mode." t)
    (or (assoc "\\.html$" auto-mode-alist)
        (setq auto-mode-alist
    	  (cons '("\\.html$" . html-mode) auto-mode-alist)))
    

以上の設定がしてあると,サフィックスに .html のある ファイルをバッファに開くと,そのバッファは html-mode になります。