       whitespace-style '(face trailing newline))
 
 (global-set-key (kbd "M-\\") 'shrink-whitespace)
+
+(require 'expand-region)
 (global-set-key (kbd "C-=") 'er/expand-region)
 
 (global-set-key (kbd "C-c r") 'vr/replace)


(require 'helm-grep)

(when (or (equal system-type 'windows-nt)
          (equal system-type 'darwin))
  (setq helm-grep-ag-command "rg --smart-case --no-heading --line-number %s %s %s"))

(global-set-key (kbd "M-g") (lambda ()

                     auto-package-update
                     ))

(add-to-list 'package-pinned-packages '(expand-region . "melpa-stable") t)

(if (file-exists-p "~/.local/share/emacs/site-lisp/rtags")
    (add-to-list 'load-path "~/.local/share/emacs/site-lisp/rtags")
  (add-to-list 'package-list 'rtags))
