Modified the .emacs file to be compatible with both 23 and 24.