 ;;                             (flycheck-mode)))
 
 
-(quelpa '(completing-read-xref :fetcher github :repo "travitch/completing-read-xref.el"))
-(require 'completing-read-xref)
-(when (>= emacs-major-version 27)
-  (setq xref-show-definitions-function #'completing-read-xref-show-defs))
-(setq xref-show-xrefs-function #'completing-read-xref-show-xrefs)
+;; (quelpa '(completing-read-xref :fetcher github :repo "travitch/completing-read-xref.el"))
+;; (require 'completing-read-xref)
+;; (when (>= emacs-major-version 27)
+;;   (setq xref-show-definitions-function #'completing-read-xref-show-defs))
+;; (setq xref-show-xrefs-function #'completing-read-xref-show-xrefs)
+
+(require 'helm-xref)
+(setq xref-show-xrefs-function 'helm-xref-show-xrefs)
 
 (require 'dumb-jump)
 (setq dumb-jump-selector 'completing-read

  (semantic-mode +1)     ;; for better imenu
  (bind-keys :map prog-mode-map
             ("<C-tab>" . company-complete)
             ("C-." . consult-imenu)))

(add-hook 'text-mode-hook 'auto-fill-mode)
(add-hook 'text-mode-hook 'my-non-special-modes-setup)

      helm-grep-file-path-style 'relative)
;; (setq helm-follow-mode-persistent t)

(bind-keys ("M-x" . helm-M-x)
           ("C-x C-b" . helm-mini)
           ("C-x b" . helm-mini)
           ("C-h a" . helm-apropos)
           ("C-x C-f" . helm-find-files)
           ("M-y" . helm-show-kill-ring)
           ("M-i" . helm-occur)
           ("C-c h" . helm-command-prefix)
           ("C-c <SPC>" . helm-all-mark-rings)
           ("C-c C-r" . helm-resume))

(require 'helm-dired-history)
(add-to-list 'savehist-additional-variables 'helm-dired-history-variable)

(require 'project)
(bind-key "C-x C-p" 'project-find-file)
