1 2 3 4 5 6 7 8 9
(defun txc-c-mode-hook () (setq indent-tabs-mode t) (setq c-basic-offset 8) (setq tab-width 8) (setq c-set-style "K&R") ) (add-hook 'c-mode-hook 'txc-c-mode-hook) (add-hook 'cc-mode-hook 'txc-c-mode-hook)