Hot answers tagged

8

Found it. The setting is (setq helm-ag-insert-at-point 'symbol) Reference: https://github.com/syl20bnr/spacemacs/issues/1848#issuecomment-108973505


3

To anyone who might have the same issue, I found a solution: M-x rename-buffer. After the buffer has been given a new name it becomes persistent


2

You can customize settings like this: (setq grep-command "ag --vimgrep " grep-use-null-device nil) I've tested it with emacs -Q --eval "(setq grep-command \"ag --vimgrep \" grep-use-null-device nil)"


1

This looks like a standard case for exec-path-from-shell. Essentially, the emacs environment is dependent on where it was started from (e.g. GUI app vs terminal vs daemon, etc.) This package loads your real shell and copies the values into emacs.


1

I don't see a feature like that in helm-grep. But you should achieve the desired result with a function like this one (defun my/jump-next-grep-result () (interactive) (other-window 1) (next-logical-line) (helm-grep-mode-jump-other-window-forward 1) (other-window -1))


1

I think it has something to do with ivy-prescient. Although, there is ivy-prescient-excluded-commands which contains counsel-ag to prevent the regex generation from being disturbed I have to add (setq ivy-re-builders-alist '((swiper . ivy--regex-plus) (counsel-ag . ivy--regex-plus) (counsel-rg . ivy--regex-plus) (t ...


Only top voted, non community-wiki answers of a minimum length are eligible