help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shortcut to compile "highlighted Text/Tag"


From: Rami A
Subject: Re: Shortcut to compile "highlighted Text/Tag"
Date: Fri, 19 Apr 2013 13:46:27 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]