我有一個標籤大小的問題。它始終是2個字符,但我想4emacs如何將標籤大小設置爲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
}