LoginSignup
0
1

More than 5 years have passed since last update.

emacsでjsのシンタックスハイライト(syntax highlight)を効かせる

Posted at

ELPA追加

パッケージリストからjs2-mode選択してインストール

init.elに下記追加

;; js2-modeの設定
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\.js\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\.es6\'" . js2-mode))

※拡張子がes6のため

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1