; Currently using Emacs 21 ; Style formatting for C/C++ programming (setq c-default-style "bsd") ; I use an indentation level of 4 spaces. Emacs normally replaces ; each 8 spaces of indentation with a hard tab, but I want only ; spaces. (add-hook 'c-mode-common-hook '(lambda () (setq indent-tabs-mode nil) (setq c-basic-offset 4))) (add-hook 'perl-mode-hook '(lambda () (setq indent-tabs-mode nil) (setq c-basic-offset 4))) ; Set text-mode and auto-fill-mode as defaults (setq default-major-mode 'text-mode) (add-hook 'text-mode-hook '(lambda () (turn-on-auto-fill) (setq fill-column 72))) ; Show column number (setq column-number-mode t) ; Color-code programs (global-font-lock-mode) ; Stuff from sipb.emacs (setq inhibit-startup-message t) (setq startup-major-mode 'text-mode) (setq default-major-mode 'text-mode) (setq display-time-day-and-date t) (display-time)