Skip to content

Commit

Permalink
Modify js-mode syntax entry to work with ES6 string templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
danlei committed Feb 3, 2015
1 parent 15fd3a4 commit 33ab8a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init.el
Expand Up @@ -865,6 +865,10 @@ CLASS-NAME is queried in the minibuffer, defaulting to
(local-set-key (kbd "C-c C-e") 'dhl-nodejs-repl-eval-last-sexp)
(local-set-key (kbd "C-c C-r") 'dhl-nodejs-repl-eval-last-sexp)))

(when (require 'js nil t)
(modify-syntax-entry ?` "\"" js-mode-syntax-table)) ; for ES6 string templates


;;;;
;;;; coffee
;;;;
Expand Down

0 comments on commit 33ab8a2

Please sign in to comment.