   (global-set-key (kbd "C-x C-f") 'helm-find-files)
   (setq helm-ff-lynx-style-map nil
         helm-input-idle-delay 0.1
-        helm-idle-delay 0.1 ))
+        helm-idle-delay 0.1
+        helm-follow-mode-persistent t ))
 
 (setup-lazy '(helm-C-x-b) "helm-C-x-b"
   (global-set-key [remap switch-to-buffer] 'helm-C-x-b))

;; smartparens
(setup "smartparens-config"
  (smartparens-global-mode t)
  (show-smartparens-global-mode +1)
  (setq sp-highlight-pair-overlay nil)
  (show-smartparens-global-mode t)
  (setq blink-matching-paren-distance nil)
  (setq show-paren-style 'parenthesis)
  (setq show-paren-delay 0)
  ;; markdown-mode
  (setup-expecting "markdown-mode" 
    (sp-with-modes '(markdown-mode)
      (sp-local-pair "*" "*" :actions '(wrap autoskip))
      (sp-local-tag "2" "**" "**")
      (sp-local-tag "m" "$" "$") ; math
      (sp-local-pair "$$" "$$" :actions '(wrap autoskip))
      (sp-local-tag "<"  "<_>" "</_>" :transform 'sp-match-sgml-tags)))
  (setup-expecting "org-mode" 
    (sp-with-modes '(org-mode)

  ;; html-mode
  (setup-expecting "html-mode" "sgml-mode"
    (sp-with-modes '(html-mode sgml-mode)
      (sp-local-pair "<" ">"))
  ;; sp keys
  (define-key sp-keymap (kbd "C-M-f") 'sp-forward-sexp)
  (define-key sp-keymap (kbd "C-M-b") 'sp-backward-sexp)
