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

前端 未结 6 1512
无人及你
无人及你 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 17:53

    You could also use file local variables to automate omrib's solution for that one file, by adding this to it:

    // Local Variables:
    // js-indent-level: 2
    // indent-tabs-mode: nil
    // End:
    

提交回复
热议问题