Files
.emacs.d/modules/navigation/siren-helm-ag.el
Jim Myhrberg a8618938bf feat(core): use general.el for keybind definitions nearly everywhere
Primarily this replaces :bind with :general in all use-package calls.
2022-03-14 21:16:15 +00:00

43 lines
1.3 KiB
EmacsLisp

;;; siren-helm-ag.el --- jimeh's Emacs Siren: helm-ag configuration.
;;; Commentary:
;; Basic configuration for helm-ag.
;;; Code:
(require 'siren-helm)
(use-package helm-ag
:after (helm-global-bindings)
:general
("C-x '" 'helm-do-ag-project-root)
("C-x C-'" 'helm-do-ag-project-root)
(:keymaps 'helm-command-map
"a" 'helm-do-ag)
:custom
(helm-ag-base-command (mapconcat 'identity
'("rg" "--no-heading" "--hidden"
"--glob !.git/*"
"--glob !.bundle/*"
"--glob !.vscode/*") " "))
(helm-ag-use-emacs-lisp-regexp nil)
(helm-ag-ignore-patterns '("*.min-latest.css"
"*.min-latest.js"
"*.min.css"
"*.min.js"
"*.sql"
"*.test"
"archive-contents"
"cache"
"elpa"
"node_modules"
"sorbet"
"straight"
"vendor/assets")))
(provide 'siren-helm-ag)
;;; siren-helm-ag.el ends here