+;; change mode-line color by evil state
+(lexical-let ((default-color (cons (face-background 'mode-line)
+ (face-foreground 'mode-line))))
+ (add-hook 'post-command-hook
+ (lambda ()
+ (let ((color (cond ((minibufferp) default-color)
+ ((evil-insert-state-p) '("#e80000" . "#ffffff"))
+ ((evil-emacs-state-p) '("#444488" . "#ffffff"))
+ ((buffer-modified-p) '("#006fa0" . "#ffffff"))
+ (t default-color))))
+ (set-face-background 'mode-line (car color))
+ (set-face-foreground 'mode-line (cdr color))))))
+;(evil-mode 1)
+;;(require 'powerline-evil)
+;; TODO: enter emacs mode in eshll rather then evil mode
+;;
+;;;; ---------------------------------- evil ------------------------------------------------
+
+;;;; ------------------------------------ helm ---------------------------------------------
+;;;;;;;;;;; helm configuration https://github.com/emacs-helm/helm http://tuhdo.github.io/helm-intro.html
+;;(require 'helm-config)
+;;(global-set-key (kbd "M-x") 'helm-M-x)
+;;(helm-mode 1)
+;;(setq helm-M-x-fuzzy-match t)
+;;(global-set-key (kbd "C-x b") 'helm-mini)
+;;(setq helm-buffers-fuzzy-matching t
+;; helm-recentf-fuzzy-match t)
+;;(global-set-key (kbd "C-x C-f") 'helm-find-files)
+;;(when (executable-find "ack-grep")
+;; (setq helm-grep-default-command "ack-grep -Hn --no-group --no-color %e %p %f"
+;; helm-grep-default-recurse-command "ack-grep -H --no-group --no-color %e %p %f"))
+;;(setq helm-ff-skip-boring-files t)
+;;;(require 'helm-config)
+;;;(require 'helm-themes)
+;;;(set-face-attribute 'helm-selection nil :background "#441100")
+;;;; ----------------------------------------------------------------------------------------