diff -r 8c1abe90331a -r 6b1ecdc690c1 .emacs-my --- a/.emacs-my Sat Dec 01 13:14:57 2012 +0200 +++ b/.emacs-my Tue Dec 04 13:19:43 2012 +0200 @@ -2329,6 +2329,11 @@ (add-to-list 'auto-mode-alist '("\\.js$" . javascript-generic-mode)) ) +(eval-after-load 'js-mode + '(progn + (modify-syntax-entry ?$ "w" js-mode-syntax-table) + )) + ;; BUG: all single char comments do not stop highlighting on end of line but ;; go to end of buffer. To fix use code: ;; (setq auto-mode-alist (rassq-delete-all 'js-mode auto-mode-alist))