 ;; Set the theme
 ;; Zenburn for the emacs GUI
 ;; Solarized Dark for the emacs in terminal
-(defun run-term-solarized()
+(defun setup-gui-env()
+  (load-theme 'zenburn t)
+  (scroll-bar-mode -1)
+  (tool-bar-mode -1))
+
+(defun setup-term-env()
   (load-theme 'solarized t)
   (set-frame-parameter nil 'background-mode 'dark)
   (set-terminal-parameter nil 'background-mode 'dark)

  (custom-set-faces
   '(default ((t (:background nil))))))

(if (display-graphic-p)
    (load-theme 'zenburn t)
  (run-term-solarized))

;; Display column number along with line number
(column-number-mode t)

;; Activate installed packages
(package-initialize)

(defun ensure-package-installed (&rest packages)
  (mapcar
  (lambda (package)
  (if (package-installed-p package)
     nil
   (if (y-or-n-p (format "Package %s is missing. Install it? " package))
       (package-install package)
     package)))
  packages))

(ensure-package-installed
 'helm
 'evil
 'color-theme-solarized
 'sublime-themes
 'zenburn-theme)

;; Required for VIM keybindings
;;(require 'evil)
