Files
.emacs.d/modules/languages/siren-json.el
Jim Myhrberg 87a86191db Majorly re-organize modules
- Split large modules into smaller parts (e.g. siren-text-manipulation)
- Organize modules into high level groups:
  - completion
  - core
  - editor
  - languages
  - linting
  - misc
  - navigation
  - projects
  - spelling
  - text-editing
  - version-control
  - windows
  - workspaces
2018-05-20 17:31:11 +01:00

37 lines
824 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 omnifmt hideshowvis)
:bind (:map json-mode-map
("C-j" . newline-and-indent)
("C-c C-h" . siren-toggle-hiding))
: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)
(setq json-reformat:indent-width width)
(setq tab-width width)
(highlight-indentation-set-offset width))
(setq flycheck-checker 'json-jsonlint)))
(provide 'siren-json)
;;; siren-js.el ends here