Commits

Ron Huang committed efaeb4e

Added color theme for non-termcap frame.

  • Participants
  • Parent commits 2726f7f

Comments (0)

Files changed (1)

File .emacs.d/init.el

                       goto-last-change)
   "A list of packages to ensure are installed at launch.")
 
+(if window-system
+    ;; use theme while not in termcap frame
+    (progn
+      (add-to-list 'my-packages 'color-theme t)
+      (add-to-list 'my-packages 'color-theme-sanityinc-solarized t)))
+
 (dolist (p my-packages)
   (when (not (package-installed-p p))
     (package-install p)))
   (set-frame-font
    "-outline-Consolas-normal-r-normal-normal-14-97-96-96-c-*-iso8859-1"))
 
+;; color theme
+(if window-system
+    ;; use theme while not in termcap frame
+    (progn
+      (require 'color-theme)
+      (require 'color-theme-sanityinc-solarized)
+      (color-theme-sanityinc-solarized-dark)))
+
 ;; c-mode
 (add-hook 'c-mode-common-hook
           '(lambda ()