# HG changeset patch # User Oleksandr Gavenko # Date 1354518269 -7200 # Node ID c6e2c636296ff41f51cdab197a424b8d58cfaa56 # Parent 73a5303842e3b620d3efae8b598dabbf668b1412 Treat '$' as word syntax for JS mode to simplify C-Left/Right movement for jQuery. diff -r 73a5303842e3 -r c6e2c636296f .emacs-my --- a/.emacs-my Mon Nov 26 23:32:33 2012 +0200 +++ b/.emacs-my Mon Dec 03 09:04:29 2012 +0200 @@ -2327,6 +2327,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))