.emacs-my
changeset 1009 c6e2c636296f
parent 1001 d9b2474219f6
child 1010 6b1ecdc690c1
equal deleted inserted replaced
1002:73a5303842e3 1009:c6e2c636296f
  2325 (if (>= emacs-major-version 23)
  2325 (if (>= emacs-major-version 23)
  2326     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2326     (add-to-list 'auto-mode-alist '("\\.js$" . js-mode))
  2327   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2327   (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode))
  2328   )
  2328   )
  2329 
  2329 
       
  2330 (eval-after-load 'js-mode
       
  2331   '(progn
       
  2332      (modify-syntax-entry ?$ "w" js-mode-syntax-table)
       
  2333      ))
       
  2334 
  2330 ;; BUG: all single char comments do not stop highlighting on end of line but
  2335 ;; BUG: all single char comments do not stop highlighting on end of line but
  2331 ;; go to end of buffer. To fix use code:
  2336 ;; go to end of buffer. To fix use code:
  2332 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2337 ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))
  2333 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2338 ;; (add-to-list 'auto-mode-alist '("\\.js$" . c++-mode))
  2334 
  2339