blob: 4bca0a8333aa573f9d9daebda63b21337b8b9d0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
;;; init-javascript.el --- configure javascript language support -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:
(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)
;;; init-javascript.el ends here
|