tramp 모드가 .dir-locals를 봅니까?

Sep 24 2020

내 로컬 컴퓨터의 VM 내부에서 프로젝트를 편집하기 위해 tramp를 통해 emacs를 사용하고 있습니다. 다음과 같은 내용이 있습니다.

ssh:vm:~/projects/project/.dir-locals.el
ssh:vm:~/projects/project/src/tests/file-i'm-editing.f90

내 로컬 컴퓨터에서 .dir-locals.el 설정이 제대로되어 있지만 vm에서 파일을 편집 할 때 .dir-locals.el 파일을 사용하지 않는 것 같습니다. 이것이 예상되는 것입니까, 아니면 해당 파일을 사용해야합니까?

올바른 경로를 갖도록 vm의 파일을 편집했습니다.

답변

3 phils Sep 24 2020 at 12:07
enable-remote-dir-locals is a variable defined in ‘files.el’.
Its value is nil

  You can customize this variable.

This variable was introduced, or its default value was changed, in
version 24.3 of Emacs.
  Probably introduced at or before Emacs version 24.3.

Documentation:
Non-nil means dir-local variables will be applied to remote files.

nb 원격 파일 작업의 오버 헤드를 줄이기 위해 성능 측정으로 기본적으로 비활성화되어 있다고 생각합니다.