 (defun yank-pop-reverse ()
   (interactive)
   (yank-pop -1))
-(global-set-key (kbd "M-Y") 'yank-pop-reverse)
+(bind-key  "M-Y" 'yank-pop-reverse)
 
 ;; goto and hint-style navigation
 (use-package avy

      (isearch-search-and-update))))

(add-hook 'isearch-mode-hook 'isearch-yank-word-hook)
(global-set-key (kbd "C-c *") 'isearch-word-at-point)

;; better grep
(use-package phi-grep

  (call-interactively 'isearch-backward-regexp))

;; use regexp search by default
(bind-key "C-s"   'isearch-forward-use-region)
(bind-key "C-r"   'isearch-backward-use-region)
(bind-key "C-S-s" 'isearch-forward-regexp)
(bind-key "C-S-r" 'isearch-backward-regexp)

;; make backspace sane
(define-key isearch-mode-map (kbd "<backspace>") 'isearch-del-char)
