Perhaps also og interest is my ".custom.el" file the contents of which are:
------------------------------------------------------------------------
;; To associate *.h files with c++ mode use the following line
(add-to-list 'auto-mode-alist '("\\.h$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.cu$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.code$" . c++-mode))
(add-to-list 'auto-mode-alist '("\\.glsl$" . c++-mode))
(global-set-key 'f2 'compile)
(custom-set-variables
'(c-basic-offset 4)
'(column-number-mode t)
'(font-lock-mode t nil (font-lock))
'(indent-tabs-mode nil)
'(line-number-mode t)
'(truncate-lines t))
(custom-set-faces
'(default ((t (:background "snow2" :size "11pt" :family "Fixed"))) t)
'(bg:snow2 ((t (:foreground "light gray" :background "light gray"))) t))
(mwheel-install)
(define-key global-map "\M->" 'indent-region)
(define-key global-map "\M-s" 'font-lock-mode)
;(custom-set-faces
; '(default ((t (:background "snow2" :size "10pt" :family "Courier"))) t))
(setq load-path
(append (list nil "/home/jody"
"/home/jody/.xemacs"
"~/emacs")
load-path))
----------------------------------------------------------------------
Regards
Jody