Questions tagged [find-grep]
5 questions
5
votes
1 answer
Can I make emacs grep windows just use the other window to open files in?
I've got emacs in front of me.
I've run a find-grep, and it's got many hits, which are displayed in a window. The file names are displayed in green as hyperlinks.
I make that the only window, with C-x 1.
If I click on a file name, the window splits…

John Lawrence Aspden
- 17,124
- 11
- 67
- 110
3
votes
3 answers
Can I script a canned find-grep in emacs?
Almost always, I want to run find-grep like this:
ack --no-heading --no-color "SOMETHING" ~/myco/firmwaresrc
Where SOMETHING is the only variable. There are actually a surprising number of keypresses and bits of thinking required to get this to…

John Lawrence Aspden
- 17,124
- 11
- 67
- 110
2
votes
3 answers
How to use ack with M-x find-grep?
Leaving question here for reference. The Lord alone knows why, but whereas once upon a time this didn't work for me, prompting me to ask this question, today it does. Typical bloody emacs. Also typically, it is an utter joy once you've wrestled with…

John Lawrence Aspden
- 17,124
- 11
- 67
- 110
2
votes
3 answers
EMACS find-grep command switching windows
I have the following in my .emacs
(defun find-in-workspace(term)
(interactive "sSearchInWorkspace: \n")
(grep-find (concat "grep -rnH --include=\*.{c,cpp,h} --include=-e '" term "' /home/workspaces/*")))
which is just a wrapper around grep-find…

Mike DeRoy
- 133
- 7
0
votes
1 answer
The lisp that convert string and grep in emacs?
I have a file formatted as
abc|
a| b| c|
family| guy|
a| comedy| show|
action|
and want to search search strings by raw (Like "a comedy show" instead of a| comedy| show|) on…

Shun
- 23
- 1
- 5