Add unityjs support
This commit is contained in:
parent
e337823b44
commit
378b903566
2 changed files with 328 additions and 0 deletions
320
elisp/unityjs-mode.el
Executable file
320
elisp/unityjs-mode.el
Executable file
File diff suppressed because one or more lines are too long
|
@ -47,6 +47,14 @@
|
||||||
:mode (("\\.json$" . json-mode)
|
:mode (("\\.json$" . json-mode)
|
||||||
("\\.jshintrc$" . json-mode)))
|
("\\.jshintrc$" . json-mode)))
|
||||||
|
|
||||||
|
;; For UnityScript
|
||||||
|
(use-package unityjs-mode
|
||||||
|
:mode "/Assets/*.js$"
|
||||||
|
:config
|
||||||
|
(add-hook! 'unityjs-mode-hook
|
||||||
|
(enable-tab-width-2)
|
||||||
|
(setq js-indent-level 2))
|
||||||
|
|
||||||
|
|
||||||
(provide 'init-js)
|
(provide 'init-js)
|
||||||
;;; init-js.el ends here
|
;;; init-js.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue