Emacs
My .emacs file
;; Red Hat Linux default .emacs initialization file
;; Are we running XEmacs or Emacs?
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
;; Turn on font-lock mode for Emacs
(cond ((not running-xemacs)
(global-font-lock-mode t)
))
;; Always end a file with a newline
(setq require-final-newline t)
;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)
;; Enable wheelmouse support by default
(if (not running-xemacs)
(require 'mwheel) ; Emacs
(mwheel-install) ; XEmacs
)
;; Don't use tabs
(setq indent-tabs-mode nil)
;;JBP Keys
;;wrong: (global-set-key "home" 'beginning-of-line)
(global-set-key [home] 'beginning-of-line)
(global-set-key [end] 'end-of-line)
(global-set-key "\C-z" 'undo)
(global-set-key [kp-divide] 'start-kbd-macro)
(global-set-key [kp-multiply] 'call-last-kbd-macro)
(global-set-key [kp-subtract] 'end-kbd-macro)