(setq require-final-newline t) (setq next-line-add-newlines nil) (autoload 'linux-c-mode "linux-c-mode" "Normal editing mode." t) (global-font-lock-mode t) (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 (cons '("\\.[ch]$" . linux-c-mode) auto-mode-alist))