;; Last change: 2003/12/12 by Aja
;; For use of Bash shell via Cygwin on Windows 2000 (or NT), available from:
;;     http://www.cygwin.com/
;; (if you do not have Cygwin installed, comment all of this section out).
;; This assumes that Cygwin is installed in C:\cygwin (the
;; default) and that C:\cygwin\bin is not already in your
;; Windows Path (it generally should not be).
;;
(setq exec-path (cons "C:/Programs/cygwin/bin" exec-path))
(setenv "PATH" (concat "C:\\Programs\\cygwin\\bin;" (getenv "PATH")))
;;
;; NT-emacs assumes a Windows command shell, which you change
;; here.
;;
(setq process-coding-system-alist '(("bash" . undecided-unix))) ;was nil
(setq w32-quote-process-args ?\")               ; was t
(setq shell-file-name "bash")                   ; was "C:/Program Files/emacs-21.3/bin/cmdproxy.exe"
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name) ; didn't exist

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; CSS mode + html-helper
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; see http://tech.irt.org/articles/js148/

(setq load-path (cons "C:/moje/_unix/emacs_stuff/" load-path))
(autoload 'css-mode "css-mode")
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist       
  (append
   (list
    '("\\.css$" . css-mode)             ; non-standard
    '("\\.htm$" . html-mode)            ; html-helper-mode - doesn't work syntax heightlighting 
    '("\\.html$" . html-mode)           
    '("\\.js$" . java-mode)
    '("\\.emacs.*$" . emacs-lisp-mode)
    ) auto-mode-alist))
(load "htmlize")        ; non-standard; function htmlize-buffer