;; .emacs ;;; uncomment this line to disable loading of "default.el" at startup ;; (setq inhibit-default-init t) ;; turn on font-lock mode (global-font-lock-mode t) ;; enable visual feedback on selections (setq transient-mark-mode t) ;; always end a file with a newline (setq require-final-newline t) ;;to display time (display-time) ;;to set the cursor color (set-cursor-color "red") ;;to set default font (set-default-font "-adobe-courier-medium-r-normal--14-100-100-100-m-90-iso10646-1") ;;to set foreground color to white (set-foreground-color "DarkBlue") ;;to set background color to black (set-background-color "WhiteSmoke") ;; ========== Enable Line and Column Numbering ========== ;; Show line-number in the mode line (line-number-mode 1) ;; Show column-number in the mode line (column-number-mode 1) ;; ========== Support Wheel Mouse Scrolling ========== (mouse-wheel-mode t) ;; ========== Place Backup Files in Specific Directory ========== ;; Enable backup files. ;; (setq make-backup-files t) ;; Enable versioning with default values (keep five last versions, I think!) ;; (setq version-control t) ;; Save all backup file in this directory. ;; (setq backup-directory-alist (quote ((".*" . "~/.emacs_backups/")))) ;; My KeyBindings... ;;set the keybinding so that f1 will start help (global-set-key [f1] 'help) ;;set the keybinding so that f2 will open a buffer (global-set-key [f2] 'switch-to-buffer) ;;set the keybinding so that f3 will start search forward (global-set-key [f3] 'tags-search) ;;set the keybinding so that f4 will start query replace (global-set-key [f4] 'tags-loop-continue) ;;set the keybinding so that you can use f5 for goto line (global-set-key [f5] 'goto-line) (global-set-key [f6] 'tags-apropos) (global-set-key [f7] 'find-tag) (global-set-key [f8] 'hippie-expand) (global-set-key [f9] 'shell) (global-set-key [f10] 'ispell)