From: Dan Espen <despen@verizon.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Shortcut to compile "highlighted Text/Tag"
Date: Fri, 19 Apr 2013 17:07:38 -0400 [thread overview]
Message-ID: <icip3iw7ol.fsf@home.home> (raw)
In-Reply-To: 4b900f10-5c84-44c0-8ad0-4330995710b3@googlegroups.com
Rami A <rami.ammari@gmail.com> writes:
> Kevin, Dan,
> Thanks for the information.
> I am afraid my description of the problem was not clear.
>
> So I have F4 configured as to do compile.
> (global-set-key [f4] 'compile)
>
> And I am setting the default compile command to be gid.
> (setq compile-command "gid ")
>
> I am using mkid to create IDs for all variables, structures and functions.
>
> So now when I want to search for something I would hit F4 and then I see this in the command line:
> compile command: gid
>
> Then I can insert what I want to search for in the source code right after gid.
>
> What I would like to achieve is a way to highlight the thing I want to
> search for in the source code, hit F4 or something and have it apply
> "compile command: gid " on the highlighted text.
>
> I hope this makes it more clear.
I'm not familiar with mkid/gid.el
Reading the instructions, it looks like they want you to type
M-x gid
not M-x compile
so try:
(global-set-key [f4] 'gid)
--
Dan Espen
next prev parent reply other threads:[~2013-04-19 21:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-17 17:37 Shortcut to compile "highlighted Text/Tag" Rami A
2013-04-17 19:47 ` Dan Espen
2013-04-18 13:28 ` Kevin Rodgers
[not found] ` <mailman.24297.1366291667.855.help-gnu-emacs@gnu.org>
2013-04-19 20:46 ` Rami A
2013-04-19 21:07 ` Dan Espen [this message]
2013-04-19 21:19 ` Rami A
2013-04-19 21:29 ` Dan Espen
2013-04-19 21:47 ` Rami A
2013-04-19 22:12 ` Dan Espen
2013-04-19 22:24 ` Rami A
2013-04-20 4:04 ` Bob Proulx
[not found] ` <mailman.24358.1366430691.855.help-gnu-emacs@gnu.org>
2013-04-20 4:36 ` Rami A
2013-04-20 5:10 ` Bob Proulx
2013-04-19 23:25 ` Rami A
2013-04-19 23:49 ` Dan Espen
2013-04-19 23:55 ` Rami A
2013-04-20 0:10 ` Dan Espen
2013-04-20 1:44 ` Rami A
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=icip3iw7ol.fsf@home.home \
--to=despen@verizon.net \
--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.