 
 (require 'helm)
 
-;; must set before helm-config,  otherwise helm use default
+;; must set before helm-config, otherwise helm use default
 ;; prefix "C-x c", which is inconvenient because you can
-;; accidentially pressed "C-x C-c"
+;; accidentally pressed "C-x C-c"
 (setq helm-command-prefix-key "C-c h")
 
 (require 'helm-config)


(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebihnd tab to do persistent action
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z")  'helm-select-action) ; list actions using C-z

(define-key helm-grep-mode-map (kbd "<return>")  'helm-grep-mode-jump-other-window)
(define-key helm-grep-mode-map (kbd "n")  'helm-grep-mode-jump-other-window-forward)
(define-key helm-grep-mode-map (kbd "p")  'helm-grep-mode-jump-other-window-backward)

(when (executable-find "curl")
  (setq  helm-google-suggest-use-curl-p t))


;;; Commentary:

;; Some config for Helm that follows this guide: http://tuhdo.github.io/helm-intro.html

;;; License:

