
emacs 및 spacemacs의 새로운 기능입니다. 요령을 배우기를 희망합니다.
.spacemacs
내 파일 에 다음 줄을 추가했습니다 .
(setq-default indent-tabs-mode nil)
(setq-default tab-width 2)
(setq-default c-basic-offset 2)
(setq indent-line-function 'insert-tab)
;; Coffeescript specific tabbing requirements
(custom-set-variables '(coffee-tab-width 2))
Coffeescript 파일을 제외한 모든 파일에서 작동하는 것 같습니다. 어떤 이유로 이러한 설정에도 불구하고 커피 스크립트 파일은 여전히 탭 너비 4로 강제됩니다.
여기에 제가 놓친 것이 있나요? 이것을 디버깅하는 방법조차 확실하지 않습니다. 파일 .spacemacs
이 잘 로드됩니다.