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: Dan Espen
Subject: Re: Shortcut to compile "highlighted Text/Tag"
Date: Fri, 19 Apr 2013 17:07:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

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


reply via email to

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