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

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

Re: howto edit a script file and test the function at the same time?


From: Kevin Rodgers
Subject: Re: howto edit a script file and test the function at the same time?
Date: Thu, 28 Sep 2006 08:40:30 -0600
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

Kevin Rodgers wrote:
emacs wrote:
I should like to have clues how to implement a "function" there when I
open a script file,
a screen with two windows opens up, editing windows above and output
windows below.
I also bind a key say "F9", when I press on that key, it perform the
execution by the script parser,
all outputs is visable in the window belows.

This script parser should also be a serial channel to a basic computer,
so when I press a key,
the string below the curser is transfer to the basic computer and the
answer is return to the output window.

Has anyone any ideers how this should be implemented or is it already
implemented?

(global-set-key [f9] 'executable-interpret)

Better would be:

(add-hook 'sh-mode-hook
          (lambda ()
            (local-set-key [f9] 'executable-interpret)))

--
Kevin





reply via email to

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