diff --git a/.emacs.d/lisp/init-helm.el b/.emacs.d/lisp/init-helm.el index ee4a5ffe..d99a1c2a 100644 --- a/.emacs.d/lisp/init-helm.el +++ b/.emacs.d/lisp/init-helm.el @@ -153,6 +153,10 @@ ;;; https://github.com/emacs-helm/helm/issues/1118 ;; (define-key helm-read-file-map (kbd "M-p") 'helm-ff-run-switch-to-history) +;; Follow symlinks with 'ag', otherwise visiting a symlinked files and greping +;; may yield (unexpectedly) no result. +(setq helm-grep-ag-command "ag --follow --line-numbers -S --color --nogroup %s %s %s") + (defun ambrevar/helm-grep-git-or-ag (arg) "Run `helm-grep-do-git-grep' if possible; fallback to `helm-do-grep-ag' otherwise. Requires `call-process-to-string' from `functions'."