From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?iso-8859-1?q?Heggest=F8yl?= Newsgroups: gmane.emacs.devel Subject: JSON mode Date: Sun, 18 Oct 2015 12:27:12 +0200 Message-ID: <1445164032.6127.0@smtp.gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-Y60JJ5xorptPoado7dLj" X-Trace: ger.gmane.org 1445164066 15873 80.91.229.3 (18 Oct 2015 10:27:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Oct 2015 10:27:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 18 12:27:39 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZnlBh-0001iY-It for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 12:27:37 +0200 Original-Received: from localhost ([::1]:33159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlBg-0001rp-Vk for ged-emacs-devel@m.gmane.org; Sun, 18 Oct 2015 06:27:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlBR-0001rY-G9 for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:27:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnlBM-0000pL-EW for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:27:21 -0400 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:34300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnlBM-0000pD-6h for emacs-devel@gnu.org; Sun, 18 Oct 2015 06:27:16 -0400 Original-Received: by lfaz124 with SMTP id z124so95181500lfa.1 for ; Sun, 18 Oct 2015 03:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:message-id:mime-version:content-type; bh=YTGC9uixq9J63mb2aNI4NV5e4hRzkBgItlBMcAUTMMw=; b=ErAyPdtiqcT4tdjPxo6lrDQbd3Sb2+bP47ee160VmaYzXnAdz9k0LPLU/x3LROrk3l osnoHw0aIpat60lHE84IL/Y+vSjlb8EhjrjOujXyanl82eMea7+u1CEXBVHBNBNamTwP Fe0aPClcGuzcVhkSgf0eDEn/2hdDZIr2e9mc53NKfp9kDHZYjVgo+35Le7V7FSJPi5Tl FBjfW3q0i5y3U+79ajkylpc2m7j/FDnzfJwpsjoli7eaDwIda7ewajQ60QwdpP6GblZ4 sdFLvgIhnbxXsIRkMQUGZxLzcrK7aolJ8lNFwGMA65mpwqZtKP6MZZ7F6rKbEqpmvc+W O/Mg== X-Received: by 10.25.218.14 with SMTP id r14mr7854351lfg.82.1445164035389; Sun, 18 Oct 2015 03:27:15 -0700 (PDT) Original-Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id n20sm4379186lfn.39.2015.10.18.03.27.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Oct 2015 03:27:14 -0700 (PDT) X-Mailer: geary/0.10.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191930 Archived-At: --=-Y60JJ5xorptPoado7dLj Content-Type: text/plain; charset=utf-8; format=flowed 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 --=-Y60JJ5xorptPoado7dLj Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
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<= /div>
JSON editing mode, making it more difficult than necessary to hav= e
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.

 - Ke= y bindings and a menu entry for prettifying JSON data.

=
 - Separate highlighting of JSON keywords, object names and value= s.

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

-- Simen
= --=-Y60JJ5xorptPoado7dLj--