 
 
 ;; use Solarized-dark as default theme
-(when (display-graphic-p)
-  (customize-set-variable 'frame-background-mode 'dark)
+(load-theme 'solarized-dark t)
+
+
+;; switch between Solarized dark and light theme
+(defun solarized-light ()
+  (interactive)
+  (load-theme 'solarized-light t))
+
+(defun solarized-dark ()
+  (interactive)
   (load-theme 'solarized-dark t))
-
-
-;; switch between Solarized dark and light theme
-(defun set-solarized-light ()
-  (interactive)
-  (customize-set-variable 'frame-background-mode 'light)
-  (load-theme 'solarized-light t))
-
-(defun set-solarized-dark ()
-  (interactive)
-  (customize-set-variable 'frame-background-mode 'dark)
-  (load-theme 'solarized-dark t))
-
-(defun toggle-solarized-theme ()
-     "Toggle between Solarized light/dark color scheme."
-    (interactive)
-    (if (eq frame-background-mode 'dark)
-          (set-solarized-light)
-      (set-solarized-dark)))
-
-(global-set-key (kbd "<f12>") 'toggle-solarized-theme)
 
 
 ;; set frame title

;; additional hooks
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'before-save-hook 'delete-trailing-whitespace)


;; activate smart-mode-line

;; see the README for more details

;;; Code:

;; start emacs server if none is available
(require 'server)
(unless (server-running-p)
  (server-start))


;; add MELPA & Marmalade
(package-initialize)
(add-to-list
