     (require 'evil)
     (evil-mode 1)
 
-
 ;; Color theme
     ; Many color themes
         ; https://github.com/emacs-jp/replace-colorthemes
     ; (require 'tangotango)
     ; (load-theme 'tangotango t)
     ;; Different color themes for GUI and terminal
-    (if (display-graphic-p)
-        (progn
-            (require 'color-theme-sanityinc-tomorrow)
-            (load-theme 'sanityinc-tomorrow-bright))
-        (load-theme 'wombat))
+    ; (if (display-graphic-p)
+        ; (progn
+            ; (require 'color-theme-sanityinc-tomorrow)
+            ; (load-theme 'sanityinc-tomorrow-bright))
+        ; (load-theme 'wombat)
+        ; (add-to-list 'default-frame-alist '(background-color . "000000")))
+    ; when terminal emacs is running set background color to 0 (black)
+    (unless (or (display-graphic-p) (daemonp))
+        (add-to-list 'default-frame-alist '(background-color . "000000")))
+
+    ; if server daemon is running
+    (if (daemonp)
+        (add-hook 'after-make-frame-functions
+            (lambda (frame)
+                (select-frame frame)
+                (load-theme 'sanityinc-tomorrow-bright t)))
+        (load-theme 'sanityinc-tomorrow-bright t))
+
+    ; (load-theme 'wombat)
+
     ; Set terminal background color to black
-    (add-to-list 'default-frame-alist '(background-color . "000000"))
+    ; (add-to-list 'default-frame-alist '(background-color . "000000"))
         ; http://stackoverflow.com/a/11419691/2450748
     ; (set-background-color "#000000")
     ; (load-theme 'wombat)

    ; (evil-ex-define-cmd "vs[plit]" 'split-window-right-and-focus)

;; Save last session
     ; (desktop-save-mode 1)
        ; http://stackoverflow.com/a/803828/2450748


    (defun nk-load-session (session-name)
        (nk-create-load-session session-name nk-session-dir))

    ; (add-hook 'kill-emacs-hook (lambda () (desktop+-save)))

    ; (defvar desktop+-base-dir "~/.emacs_sessions/"
    ; "Base directory for desktop files.")

