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

Do someone use json-mode?

lowl4tency06: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

lowl4tency06:02:14

So, my first line looks like ugly hack )

lowl4tency06:02:10

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

lowl4tency07:02:16

bozhidar: perhaps you know simple_smile