.emacs-my
changeset 1031 a064392620d7
parent 1030 81c300954828
child 1032 2177746c28a0
child 1049 154ab823d934
equal deleted inserted replaced
1030:81c300954828 1031:a064392620d7
  2383 (if (>= emacs-major-version 23)
  2383 (if (>= emacs-major-version 23)
  2384     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2384     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2385   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2385   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2386   )
  2386   )
  2387 
  2387 
  2388 (eval-after-load 'js-mode
  2388 (eval-after-load 'js '(modify-syntax-entry ?$ "w" js-mode-syntax-table))
  2389   '(progn
       
  2390      (modify-syntax-entry ?$ "w" js-mode-syntax-table)
       
  2391      ))
       
  2392 
  2389 
  2393 ;; BUG: all single char comments do not stop highlighting on end of line but
  2390 ;; BUG: all single char comments do not stop highlighting on end of line but
  2394 ;; go to end of buffer. To fix use code:
  2391 ;; go to end of buffer. To fix use code:
  2395 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2392 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2396 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2393 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))