Peter Damoc wrote:
> If you implement a command processor
> you could have a bunch of custom made commands like
"EnterInPython",
> "TabInPython", "EnterInC",
"TabInC", etc that could be mounted
appropriately
> to the key presses upon loading a file or upon saving
it with a certain
> extension.
sort of, but you want the commands to be generic:
Enter
Tab
Comment
etc...
like this:
Franz Steinhaeusler wrote:
> What aout different modes as in emacs:
>
> You have one Command: for example Block Comment or
Uncomment:
> C++: //
> Python: #
Exactly. and that's what makes Emacs so powerful: ctrl+C
means something
like "make" in all modes -- in C it runs make,
in LaTeX is runs latex,
in Python is runs the current buffer in the interpreter,
etc..
Most languages have a common set of commands like this, the
key binding
would be bound the commands, and exactly what the commands
do would be
mode-specific.
We'd only need a Python mode to start, but one or two
others would
really help get a more universal infrastructure in place.
C/C++ is an
obvious choice, and I know I'd like LaTeX.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker noaa.gov
------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribe lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help lists.wxwidgets.org
|