.emacs-my
changeset 965 72d443fe2b1d
parent 964 9382e2dce0ed
child 966 e1eb89d99570
child 967 5d0ffd485a43
equal deleted inserted replaced
964:9382e2dce0ed 965:72d443fe2b1d
  2256      ))
  2256      ))
  2257 
  2257 
  2258 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2258 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2259 (message "javascript, js")
  2259 (message "javascript, js")
  2260 
  2260 
  2261 ;; (if (>= emacs-major-version 23)
  2261 (if (>= emacs-major-version 23)
  2262 ;;     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2262     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2263 ;;   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2263   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2264 ;;   )
  2264   )
  2265 
  2265 
  2266 (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2266 ;; BUG: all single char comments do not stop highlighting on end of line but
  2267 (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2267 ;; go to end of buffer. To fix use code:
       
  2268 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
       
  2269 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2268 
  2270 
  2269 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2271 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2270 (message "bat file, batch")
  2272 (message "bat file, batch")
  2271 
  2273 
  2272 ;; loaded from 'generic-x.el'
  2274 ;; loaded from 'generic-x.el'