* .json files - should they be associated with som Emacs mode by default?
@ 2012-01-13 11:25 Lennart Borgman
2012-01-13 13:32 ` Julien Danjou
2012-01-13 21:33 ` Tekk
0 siblings, 2 replies; 5+ messages in thread
From: Lennart Borgman @ 2012-01-13 11:25 UTC (permalink / raw)
To: Emacs-Devel devel
Maybe this is already done in Emacs 24?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: .json files - should they be associated with som Emacs mode by default?
2012-01-13 11:25 .json files - should they be associated with som Emacs mode by default? Lennart Borgman
@ 2012-01-13 13:32 ` Julien Danjou
2012-01-13 15:25 ` Lennart Borgman
2012-01-13 21:33 ` Tekk
1 sibling, 1 reply; 5+ messages in thread
From: Julien Danjou @ 2012-01-13 13:32 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
On Fri, Jan 13 2012, Lennart Borgman wrote:
> Maybe this is already done in Emacs 24?
Yes, see `auto-mode-alist':
("\\.json\\'" . js-mode)
--
Julien Danjou
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: .json files - should they be associated with som Emacs mode by default?
2012-01-13 13:32 ` Julien Danjou
@ 2012-01-13 15:25 ` Lennart Borgman
0 siblings, 0 replies; 5+ messages in thread
From: Lennart Borgman @ 2012-01-13 15:25 UTC (permalink / raw)
To: Lennart Borgman, Emacs-Devel devel
On Fri, Jan 13, 2012 at 14:32, Julien Danjou <julien@danjou.info> wrote:
> On Fri, Jan 13 2012, Lennart Borgman wrote:
>
>> Maybe this is already done in Emacs 24?
>
> Yes, see `auto-mode-alist':
>
> ("\\.json\\'" . js-mode)
Ok, thanks. (I can't use Emacs 24 until I have moved a lot of things
there. And I do not have time so maybe I stay 23 as long as I use
Emacs ... ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: .json files - should they be associated with som Emacs mode by default?
2012-01-13 11:25 .json files - should they be associated with som Emacs mode by default? Lennart Borgman
2012-01-13 13:32 ` Julien Danjou
@ 2012-01-13 21:33 ` Tekk
2012-01-14 0:10 ` David De La Harpe Golden
1 sibling, 1 reply; 5+ messages in thread
From: Tekk @ 2012-01-13 21:33 UTC (permalink / raw)
To: Lennart Borgman; +Cc: Emacs-Devel devel
On Fri, 13 Jan 2012, Lennart Borgman wrote:
> Maybe this is already done in Emacs 24?
>
>
javascript seems appropriate for this, since json is valid js
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: .json files - should they be associated with som Emacs mode by default?
2012-01-13 21:33 ` Tekk
@ 2012-01-14 0:10 ` David De La Harpe Golden
0 siblings, 0 replies; 5+ messages in thread
From: David De La Harpe Golden @ 2012-01-14 0:10 UTC (permalink / raw)
To: emacs-devel
On 13/01/12 21:33, Tekk wrote:
>
>
> On Fri, 13 Jan 2012, Lennart Borgman wrote:
>
>> Maybe this is already done in Emacs 24?
>>
>>
>
> javascript seems appropriate for this, since json is valid js
>
...but not necessarily vice-versa [1]. Perhaps there should be a strict
json-mode. Currently you can open a .json file and emacs trunk, using
javascript-mode, is okay with it having {a: 'b'}, say, when it should
really be highlighting that as a json syntax error (unquoted key, single
quoted value).
[1]
http://stackoverflow.com/questions/3975859/what-are-the-differences-between-json-and-javascript-object
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-14 0:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 11:25 .json files - should they be associated with som Emacs mode by default? Lennart Borgman
2012-01-13 13:32 ` Julien Danjou
2012-01-13 15:25 ` Lennart Borgman
2012-01-13 21:33 ` Tekk
2012-01-14 0:10 ` David De La Harpe Golden
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.