blob: 145d5f962724bc320a0cf620bcc2ec0a9e00013a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
(use-package js
:init
;; set indent level to 2
(setq-default js-indent-level 2)
:mode
;; use js-mode for json and jshint
("\\.\\(json\\|jshintrc\\)\\'" . js-mode)
:bind (:map js-mode-map
;; C-c f formats json
("C-c f" . json-pretty-print-buffer)))
(provide 'init-javascript)
|