Debian Codegraph @

tools/scoop/batch-pretty-print-json.el

raw
1 ;; JSON pretty printer for Emacs batch mode
2
3 (javascript-mode)
4
5 ;; Scoop suggests 4-space indentation
6 (setq json-encoding-default-indentation " ")
7 (json-pretty-print-buffer)
8
9 ;; Scoop recommends UTF-8 with MSDOS style line feed
10 (set-buffer-file-coding-system 'utf-8-dos)
11 (save-buffer)