My .emacs file

This is definitely a work in progress. I just “discovered” emacs in January 2007, then it took me a while to realize I could customize it too. 🙂

(add-to-list 'auto-mode-alist '("\.js\$" . javascript-mode))
(autoload 'javascript-mode "javascript-mode" "Javascript major mode" t)
(add-to-list 'auto-mode-alist '("\.[bB][aA][tT]\$" . bat-mode))
(add-to-list 'auto-mode-alist '("CONFIG\\." . bat-mode))
(add-to-list 'auto-mode-alist '("AUTOEXEC\\." . bat-mode))
(autoload 'bat-mode "bat-mode" "DOS and WIndows BAT files" t)
(require 'color-theme)
;;Tramp opts
;; We load tramp to define the variable.
(require 'tramp)
;;(add-to-list 'tramp-remote-path "C:/Program Files/putty")
(setq tramp-auto-save-directory "c:/TEMP"
      tramp-default-method "plink"
      tramp-password-end-of-line "\r\n")
;;(setq tramp-default-method "scp")