
(setq auto-mode-alist
      (append
             '(
               ("\\.css$". css-mode)
              )
      auto-mode-alist))

(defun css-mode ()
  (interactive)
  (java-mode)
  (setq tab-width 3)
  (setq major-mode 'css-mode)
  (setq mode-name "CSS")
  (setq indent-tabs-mode nil)
  (d-font-lock-add-end
   '(
     ("#[a-zA-Z0-9-]+" 0 'font-lock-preprocessor-face t)
     ("#[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]\\>" 0 'd-face-cc-digits t)
     ("#[0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F]\\>" 0 'd-face-cc-digits t)
     ("url(\\([^()]*\\))" 1 'fg:lightblue nil)
     )))

;;(require 'd-flock)
(provide 'd-css)
