                     nil
                     :foreground "gray50")
 
+(set-face-attribute 'helm-ff-executable
+                    nil
+                    :foreground "#228b22")
+
+(set-face-attribute 'helm-selection
+                    nil
+                    :background "#a5e8be")
+
+(set-face-attribute 'helm-visible-mark
+                    nil
+                    :background "#f1c40f")
+
+(set-face-attribute 'helm-source-header
+                    nil
+                    :height 0.9)
+
 (set-face-attribute 'font-lock-comment-face
                     nil
                     ;; :height 0.9

(diminish 'projectile-mode)

(add-to-list 'projectile-globally-ignored-files ".DS_Store")
(setq projectile-completion-system 'ivy)

(require 'counsel-projectile)
(counsel-projectile-on)

(defun my-switch-to-buffer ()
  (interactive)
  (condition-case nil
      (if (projectile-project-root)
          (counsel-projectile)
        (ivy-switch-buffer))
    ;; fallback if error occurs (usually in projectile-project-root)
    (error (ivy-switch-buffer))))

(global-set-key (kbd "C-x b") 'my-switch-to-buffer)

(setq counsel-projectile-ag-initial-input
      '(projectile-symbol-or-selection-at-point))

(global-set-key (kbd "M-g") 'counsel-projectile-ag)

(global-set-key (kbd "C-h f") 'helpful-function)
(global-set-key (kbd "C-h v") 'helpful-variable)

                     processing-mode
                     restart-emacs
                     diffview
                     helm
                     helm-swoop
                     projectile
                     helm-projectile
                     ace-jump-helm-line
                     ;; smex
                     super-save
                     anzu
                     shell
