(load "~mc38/.emacs-mc38") ;; This defines the mc38-style. We put it in a ;; load file so that we can change it for the ;; whole class as needed. (add-hook 'c++-mode-hook '(lambda () (turn-on-auto-fill) ;; Insert a newline if line gets to long. (c-toggle-auto-state 1) ;; Make ; and { and } and : all electric (c-set-style "mc38-style"))) ;; Color highlighting stuff (defvar xemacs-p (string-match "XEmacs" emacs-version)) (if (not xemacs-p) (progn (global-font-lock-mode t) ; If using global-font-lock-mode, make control-L update colors (global-set-key "\C-l" (function (lambda (arg) (interactive "P") (font-lock-fontify-block 100) (recenter arg)))))) (setq auto-mode-alist (append '(("\\.h$" . c++-mode)) auto-mode-alist))