Skip to content

indent_size ignored in json-mode #371

@dustinpaluch

Description

@dustinpaluch

Reproduce:

  1. emacs -q
  2. package-initialize
  3. Create a new directory with editorconfig:
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
  1. Create a json file with:
{
  "test": 1
}
  1. editorconfig-apply
  2. editorconfig-display-current-properties yields
# EditorConfig for /Users/dustinpaluch/src/editorconfig-test/test.json
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
  1. Hit tab with point on the line with "test"

Expected:

I expect the line to have two spaces of indentation

Actual:

I get four spaces of indentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions