*modeいろいろ
#contents
**CSS
-[[ダウンロード:http://www.garshol.priv.no/download/software/css-mode/]]
-.emacs
 (autoload 'css-mode "css-mode")
 (setq auto-mode-alist (cons '("\\.css$" . css-mode) auto-mode-alist))
**Visual Basic
-[[ダウンロード:http://www.gnu.org/software/emacs/windows/ntemacs/contrib/visual-basic-mode.el]]
-.emacs
 (autoload 'visual-basic-mode "visual-basic-mode" "Visual Basic mode." t)
 (setq auto-mode-alist (append '(("\\.\\(frm\\|bas\\|cls\\)$" . 
                                  visual-basic-mode)) auto-mode-alist))
**Java
-[[JDEE]]
**Java Script
-.emacs
 (setq auto-mode-alist (append '(("\\.js$" . java-mode)) auto-mode-alist))
**Multi Mode
-[[ダウンロード:http://yamaguch.sytes.net/~tora/java/jde.html]]
-.emacs
 (autoload 'multi-mode
           "multi-mode"
           "Allowing multiple major modes in a buffer."
           t)
**JSP
-要Multi Mode
-.emacs
 (defun jsp-mode () 
     (multi-mode 1 
 	 'html-mode
 	 '("<%" java-mode)
 ;	 '("<%" jde-mode) ; jdee使用時
 	 '("%>" html-mode)))
 (setq auto-mode-alist (append '(("\\.jsp$" . jsp-mode)) auto-mode-alist))
**HTML+Java Script+any
-要Multi Mode
-.emacs
 (defun mhtml-mode () 
   (multi-mode 1 
 			  'html-mode
 			  '("<SCRIPT" java-mode)
 			  '("/SCRIPT>" html-mode)))
 (setq auto-mode-alist (append '(("\\.\\(htm\\|html\\|shtm\\|shtml\\)$" . mhtml-mode)) auto-mode-alist))


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS