;; set c basic offset
(defun linux-c-mode ()
;"C mode with adjusted defaults for use with the Linux kernel."
(interactive)
(c-mode)
(c-set-style "K&R")
(setq c-basic-offset 8))
(setq auto-mode-alist
(append '(("" . linux-c-mode)
("" . linux-c-mode)
) auto-mode-alist))
阅读(413) | 评论(0) | 转发(0) |