Files
.emacs.d/modules/languages/siren-json.el
Jim Myhrberg abff344eb2 refactor(folding): Improve siren-folding module
- Add a siren-folding function which enables all folding-related modes,
  and change other modules to use this new function.
2020-01-26 21:39:46 +00:00

36 lines
768 B
EmacsLisp

;;; siren-json.el --- jimeh's Emacs Siren: json-mode configuration.
;;; Commentary:
;; Basic configuration for json-mode.
;;; Code:
(require 'siren-eslintd-fix)
(require 'siren-folding)
(use-package json-mode
:mode "\\.json\\'"
:requires (flycheck highlight-indentation hideshowvis)
:bind (:map json-mode-map
("C-j" . newline-and-indent)
("C-c C-h" . siren-folding-toggle))
:hook
(json-mode . siren-json-mode-setup)
:init
(defun siren-json-mode-setup ()
"Default tweaks for `json-mode'."
(let ((width 2))
(setq js-indent-level width
json-reformat:indent-width width
tab-width width))
(setq flycheck-checker 'json-jsonlint)))
(provide 'siren-json)
;;; siren-js.el ends here