From: etay.meiri@gmail.com
To: help-gnu-emacs@gnu.org
Subject: How to supply the current word as a parameter to grep?
Date: Fri, 19 Sep 2008 05:01:31 -0700 (PDT) [thread overview]
Message-ID: <388a3e6b-72ee-4f6d-8578-d503d794d9e8@j22g2000hsf.googlegroups.com> (raw)
Hi,
I have the following entries in my .emacs:
(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?
Thanks,
-Etay Meiri
next reply other threads:[~2008-09-19 12:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-19 12:01 etay.meiri [this message]
2008-09-19 14:24 ` How to supply the current word as a parameter to grep? Drew Adams
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=388a3e6b-72ee-4f6d-8578-d503d794d9e8@j22g2000hsf.googlegroups.com \
--to=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.