Emacs: Set tab indent for just one file on the fly

前端 未结 6 1651
无人及你
无人及你 2021-02-01 17:02

I work on an open source project where the creator sets his tab-indents to 2 spaces.

I\'d like to just enable it on the fly for the one file I work on and not other fil

6条回答
  •  没有蜡笔的小新
    2021-02-01 18:06

    You can make the variable js-indent-level local to the buffer using:

    M-x make-variable-buffer-local js-indent-level

    Then you can set that variable in the buffer using:

    M-x set-variable js-indent-level 2

提交回复
热议问题