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: Wed, 17 Apr 2013 15:47:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

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

> I have F4 being shortcut for the compile command:
>
> (global-set-key [f4]          'compile)
>
> But I have to type the tag I am looking for after pressing F4.
>
> Is there a way to highlight the symbol in the code and have a shortcut
> that does the compilation right away?

Huh?

The most logical compile command is "make".

If you need more elaborate commands, or don't want to use a Makefile,
put lines like this in your source file:

# Local Variables:
# compile-command: "./s1.py stock.data"
# End:


-- 
Dan Espen


reply via email to

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