;; Disable auto-save for all file buffers (setq auto-save-default nil) (global-set-key "\C-m" 'newline-and-indent) (global-font-lock-mode t) ;; Set the frame title to the name of the buffer, if supported. (setq frame-title-format "%b") ;; Disable the menu bar (menu-bar-mode -1) ;; The most important statement in this file. ;; Do not display a splash screen on startup. (setq inhibit-splash-screen t) ;; Mode Line (setq line-number-mode t) (setq column-number-mode t) (display-time) ;; Don't force a newline at the end of every file. ;; Doing so can screw up HTML, where a newline is more ;; or less equivalent to a space. (setq require-final-newline nil) ;; Unicode ;; (set-language-environment "UTF-8") (prefer-coding-system 'utf-8-unix) (set-terminal-coding-system 'utf-8-unix) (set-keyboard-coding-system 'utf-8-unix) (setq inhibit-iso-escape-detection t) ;; Don't leave backups everywhere. (setq backup-inhibited t) ;; Add this to load-path manually, then add the rest in load-paths.el (add-to-list 'load-path "~/.home/emacs/") (load-library "load-paths") (if (eq system-type 'cygwin) (load-library "win32")) ;; Need this for ignore-errors, and some modes. (require 'cl) (load-library "auto-modes") (load-library "mode-hooks") (load-library "autoloads") (defun load-erc() (interactive) (ignore-errors (load-library "erc") ) ) (global-set-key "\C-ce" 'load-erc) ;; Never ask me anything, emacs. (setq save-abbrevs nil) (load-library "diff-buffer-against-file") (global-set-key "\C-cd" 'diff-buffer-against-file) ;; These next functions override the defaults provided by emacs. They ;; prevent warning messages related to file modification times, ;; particularly on weird filesystems. ;;(defun ask-user-about-supersession-threat (fn) ;; ) ;;(defun verify-visited-file-modtime (bf) ;; t ;; )