Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions json-reformat.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@

;;; Commentary:

;; json-reformat.el is a reformatting tool for JSON http://en.wikipedia.org/wiki/JavaScript_Object_Notation.
;; json-reformat.el is a reformatting tool for JSON
;; http://en.wikipedia.org/wiki/JavaScript_Object_Notation.

;; Use the command `json-reformat-region'.
;; Use the command `json-reformat-region'. You can customize its
;; behaviour with `json-reformat:indent-width' and
;; `json-reformat:pretty-string?' (e.g. avoid escaping slashes and
;; control characters).

;;; Code:

Expand Down Expand Up @@ -141,7 +145,11 @@ Else t:

;;;###autoload
(defun json-reformat-region (begin end)
"Reformat the JSON in the region from BEGIN to END."
"Reformat the JSON in the region from BEGIN to END.

You can customize its behaviour with `json-reformat:indent-width'
and `json-reformat:pretty-string?' (e.g. avoid escaping slashes
and control characters)."
(interactive "r")
(save-excursion
(save-restriction
Expand Down