 (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

  :bind (("M-g l" . avy-goto-line)
         ("M-g c" . avy-goto-char)
         ("M-g w" . avy-goto-word-or-subword-1)))
(global-set-key (kbd "M-g M-g") 'goto-line)
(global-set-key (kbd "M-g g") 'goto-line)


(use-package phi-search
  :ensure t
  :config
  (global-set-key (kbd "C-c C-s") 'phi-search)
  (global-set-key (kbd "C-c C-r") 'phi-search-backward))

(use-package visual-regexp
  :ensure t

    (save-excursion
      (goto-char (point-min))
      (call-interactively 'vr/query-replace)))
  :bind (("C-c r" . vr/query-replace)
         ("C-c R" . vr/query-replace-from-beginning)))


;; use regexp search and selected region (if any) by default
