Fork me on GitHub
#emacs
<
2016-02-23
>
Kira Sotnikov06:02:57

Do someone use json-mode?

Kira Sotnikov06:02:47

Interesting thing if I add

(defconst js-indent-level 2)
all is working fine, but if I change
(let ((json-reformat:indent-width js-indent-level))
on
(let (( js-indent-level json-reformat:indent-width))
C-x C-f is working but when I typing my json and hit enter it's set up 4 spaces on fly. After C-x C-f all is good again. If I change nothing and change only json-reformat (as it used in docs) I've still got 4 spaces for indent

Kira Sotnikov06:02:14

So, my first line looks like ugly hack )

Kira Sotnikov06:02:10

I don't understand which function is responsible fot indents on fly

Kira Sotnikov07:02:16

bozhidar: perhaps you know simple_smile