Configure
(with-eval-after-load 'xref
;; (C-x p g) project-find-regexp; with C-u, set directory and file name pattern
(setopt xref-search-program 'ripgrep) ;; use ripgrep for C-x p g
;; Enable multi-line searching
(add-to-list 'xref-search-program-alist
(cons 'ripgrep
(concat (alist-get 'ripgrep xref-search-program-alist)
" --multiline")))
;; (setenv "RIPGREP_CONFIG_PATH" "~/")
;; add --threads 16 --hidden
;; logs the correct call someone filters out stuff in e.g. .emacs
;; perhaps project.el?
;; (with-eval-after-load 'xref
;; (add-to-list 'xref-search-program-alist
;; (cons 'ripgrep
;; "xargs -0 rg <C> --null -nH --no-heading --no-messages -e <R> --threads 16 --hidden")))
)
Enable the Outline minor mode.
(with-eval-after-load 'xref
(add-hook 'xref--xref-buffer-mode-hook #'outline-minor-mode))