我有标签大小的问题。它总是 2 个字符,但我想要 4 个。
我的代码:
(defun my-c++-mode-hook ()
(set (make-local-variable 'compilation-parse-errors-filename-function)
'process-error-filename)
(local-set-key (kbd "C-c b") 'compile) ; KBD
(setq compile-command "scons")
(setq indent-tabs-mode nil)
(setq tab-width 4)
(setq c-basic-indent 4)
)
(add-hook 'c++-mode-hook 'my-c++-mode-hook)
(add-hook 'c-mode-common-hook 'my-c++-mode-hook)
所以。当我打字时:
void f() {
// Here I need 4 chars but I'm getting only 2 when I'm pressing TAB
}