 ;;; Code:
 
 (deftheme devalot "A theme loosely based on solarized.")
+
+;; Create the faces if they don't already exist.
+(put 'devalot 'theme-immediate t)
 
 ;;; Notes
 ;; * To see all faces in effect: list-faces-display

  (custom-theme-set-faces
   'devalot
   `(default        ((((type graphic)) (:background ,bg-normal :foreground ,fg-normal))))
   `(cursor         ((t (:background ,yellow :foreground ,bg-normal))))
   `(error          ((t (:foreground ,red-high))))
   `(warning        ((t (:foreground ,yellow-high))))
   `(success        ((t (:foreground ,green-high))))



   ;; ERB (Ruby Embedded in HTML)
   `(erb-face               ((t (:background ,bg-normal :foreground ,fg-normal))))
   `(erb-delim-face         ((,class (:foreground ,fg-low)) (t (:foreground "magenta"))))
   `(erb-out-face           ((t (:background ,bg-normal :foreground ,fg-normal))))
   `(erb-out-delim-face     ((,class (:foreground ,blue :background ,bg-normal)) (t (:foreground "blue"))))
   `(erb-comment-delim-face ((t (:foreground ,fg-low :bold t))))
   `(erb-comment-face       ((t (:foreground ,violet :italic t))))

   ;; Diff Mode
   `(diff-added             ((t (:foreground ,green))))
