I want to use the current word as the input when I do
helm-projectile-ag. That saves me the typing work. I didn't see this option in
How would I implement that?
Found it. The setting is
(setq helm-ag-insert-at-point 'symbol)
helm-ag-insert-at-point is only applicable to
I think you should use following elisp snippet: https://github.com/ageldama/configs/blob/master/emacs/dot-emacs-2018#L252
(defun my-helm-projectile-rg--region-selection (old-fn &rest arguments) (let ((thing (thing-at-point 'symbol))) (if (null thing) (apply old-fn arguments) thing))) (advice-add #'helm-projectile-rg--region-selection :around #'my-helm-projectile-rg--region-selection)