json-emacs / json-mode

Major mode for editing JSON files with emacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Indent automatically when using electric-pair-mode

raxod502 opened this issue · comments

In js2-mode, with electric-pair-mode enabled, and point | positioned as follows:

{|}

I can press RET to get the following:

{
    |
}

Unfortunately, doing the same in json-mode only gives:

{
|}

I think this may have something to do with the syntax table (not) provided by json-mode, since both js2-mode and json-mode inherit from js-mode.

commented

It works now.