unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Simen Heggestøyl" <simenheg@gmail.com>
To: emacs-devel@gnu.org
Subject: JSON mode
Date: Sun, 18 Oct 2015 12:27:12 +0200	[thread overview]
Message-ID: <1445164032.6127.0@smtp.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 973 bytes --]

Hi!

With the newly introduced json-sexp-mode, I was reminded of a JSON
editing mode that I started toying with some time ago, and have been
using privately.

It arose from my frustration of Emacs having JavaScript mode as the
JSON editing mode, making it more difficult than necessary to have
separate settings for editing JavaScript and JSON.

The code can be found at: http://folk.uio.no/simenheg/json-mode.el.

Compared to using the built-in JavaScript mode, the dedicated JSON
mode offers the following advantages:

 - A separate mode hook and namespace, providing for instance
   `json-mode-indent-offset'.

 - SMIE based movement and indentation.

 - Key bindings and a menu entry for prettifying JSON data.

 - Separate highlighting of JSON keywords, object names and values.

If you agree with me that Emacs should have a dedicated mode for
editing JSON, I'll be happy to help integrating it (be it this mode,
or another one, if it proves insufficient).

-- Simen

[-- Attachment #2: Type: text/html, Size: 1388 bytes --]

             reply	other threads:[~2015-10-18 10:27 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-18 10:27 Simen Heggestøyl [this message]
2015-10-18 12:22 ` JSON mode Artur Malabarba
2015-10-18 12:30 ` Dmitry Gutov
2015-10-18 14:08   ` Simen Heggestøyl
2015-10-18 15:32     ` Dmitry Gutov
2015-10-29  3:47   ` Josh Johnston
2015-10-29 13:09     ` Dmitry Gutov
2015-11-12 20:01       ` Simen Heggestøyl
2015-11-12 22:05         ` John Wiegley
2015-11-12 23:24         ` Dmitry Gutov
2015-11-13  0:54           ` Artur Malabarba
2015-11-14 10:40         ` Stephen Leake
2015-11-14 11:14           ` Simen Heggestøyl
2016-12-11 14:58             ` Simen Heggestøyl
2016-12-12  6:08               ` John Wiegley
2016-12-12 13:39               ` Clément Pit--Claudel
2016-12-12 20:38                 ` Simen Heggestøyl
2016-12-12 22:27                   ` Clément Pit--Claudel
2016-12-12 23:05                     ` Josh Johnston
2016-12-13 10:14                     ` Nicolas Petton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445164032.6127.0@smtp.gmail.com \
    --to=simenheg@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).