 (bind-key "M-t M-t" 'transpose-words)
 (bind-key "M-t s" 'transpose-sexps)
 
-;; Alternative to grepping repo.
-(bind-key "C-c s r" 'helm-ag-r-from-git-repo)
-;; Alternative to grepping from current location.
-(bind-key "C-c s d" 'helm-ag-r)
-
 (use-package hackernews
   :ensure hackernews)
 

  ;; Saving point to register enables jumping back to last change at any time.
  (ar/save-point))

(defun ar/java-mode-hook ()
  "Called when entering java-mode"
  ;; 100-column limit for java.

      '("~/.emacs.d/yasnippets/personal"))
(yas-reload-all)

;; From http://tuhdo.github.io/helm-intro.html
;; 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"
(setq helm-command-prefix-key "C-c h")

(use-package helm
  :init
  (progn
    (use-package helm-ag
      :ensure helm-ag)
    (use-package helm-buffers)
    (use-package helm-files)
    (use-package helm-grep)
    (use-package helm-swoop)
    (use-package helm-config))
  :ensure helm)

(defun ar/projectile-helm-ag ()
  (interactive)
  (helm-do-ag (projectile-project-root)))

;; Use ag for grepping git project.
(bind-key "C-c s r" 'ar/projectile-helm-ag)
;; Use ag for grepping from current location.
(bind-key "C-c s d" 'helm-do-ag)

(use-package helm-dash
  :ensure helm-dash
  :demand)
;;(require 'helm-dash)
(setq helm-dash-browser-func 'eww)

(global-set-key (kbd "M-C-s") 'helm-multi-swoop-all)
