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 18:12:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Rami A <rami.ammari@gmail.com> writes:

> Dan,
> I agree, I have not installed gid.el.
> Basically I am trying to keep my emacs configs limited to the dotemacs file I 
> have without any .el packages.
>
> I am sure there is a way to identify the "highlighted" text and apply 
> commands and options on it as a variable.
> I am hoping for a solution of that nature.
>
> Thank you for your continuous follow up.

Try using grep instead of compile.

(global-set-key [f4]          'grep)

Then put the cursor on a word and hit C-u F4

I think a function or lambda is needed to automatically supply the C-u.

-- 
Dan Espen


reply via email to

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