(autoload 'css-mode "css-mode")
 (setq auto-mode-alist (cons '("\\.css$" . css-mode) auto-mode-alist))
**Visual Basic
 (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 Script
 (setq auto-mode-alist (append '(("\\.js$" . java-mode)) auto-mode-alist))
**Multi Mode
 (autoload 'multi-mode
           "Allowing multiple major modes in a buffer."
-要Multi Mode
 (defun jsp-mode () 
     (multi-mode 1 
 	 ;;your choice of modes for java and html
 	 '("<%" java-mode)
 ;	 '("<%" jde-mode) ; jdee使用時
 	 '("%>" html-mode)))
 (setq auto-mode-alist (append '(("\\.jsp$" . jsp-mode)) auto-mode-alist))
**HTML+Java Script+any
-要Multi Mode
 (defun mhtml-mode () 
   (multi-mode 1 
 			  '("<SCRIPT" java-mode)
 			  '("/SCRIPT>" html-mode)))
 (setq auto-mode-alist (append '(("\\.\\(htm\\|html\\|shtm\\|shtml\\)$" . mhtml-mode)) auto-mode-alist))

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