;;; A Sample .emacs file ;;; Joshua Reich - reich@cs.columbia.edu ;;; 11.21.2005 ;;; Anything following a semi-colon is a comment (three just look better) ;;; emacs is written in LISP - thus there will be lots of parenthesis ;;; below are some samples of how to do different things, for more info ;;; do some online searching ;-) ;;; turn on colorization in all modes which support it (if (fboundp 'global-font-lock-mode) (global-font-lock-mode t)) (setq font-lock-maximum-decoration t) ;;; key bindings - this is how to make hotkeys for your favorite commands (global-set-key "\C-cl" 'goto-line) ;;; Two different types of function definition (fset 'indent-all "\C-xh\C-[\C-\\") (defun split( ) (interactive) (split-window-vertically) (other-window 1) ) ;;; Files ending in .h or .template should be edited in c++-mode. (setq auto-mode-alist (cons '("\\.h$" . c++-mode) auto-mode-alist))