From: "Drew Adams" <drew.adams@oracle.com>
To: <etay.meiri@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: How to supply the current word as a parameter to grep?
Date: Fri, 19 Sep 2008 07:24:56 -0700 [thread overview]
Message-ID: <000401c91a63$7f61a540$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <388a3e6b-72ee-4f6d-8578-d503d794d9e8@j22g2000hsf.googlegroups.com>
> (global-set-key [(control shift f)] 'grep)
> (setq grep-command "cd ~/work && find -name \"*.cpp\" -or -name \"*.h
> \" | xargs grep -nH -e ")
>
> I'd like have the current word supplied as a parameter to grep
> whenever I hit the above key combination.
> How do I accomplish that?
See grep+.el: http://www.emacswiki.org/cgi-bin/wiki/grep%2b.el. It does that.
next prev parent reply other threads:[~2008-09-19 14:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 12:01 How to supply the current word as a parameter to grep? etay.meiri
2008-09-19 14:24 ` Drew Adams [this message]
2008-09-19 15:34 ` harven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000401c91a63$7f61a540$0200a8c0@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=etay.meiri@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.