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

Re: DrScheme as Emacs-like kitchen sink



DrScheme really is only really designed for editing Scheme code, for 
the time being. Although it would be nice to swap in and out 
preferences sets on startup automatically, that isn't something high 
on my list of priorities right now. (sorry....)

If you would like to edit other things, the easiest thing (to get 
started) is to  evaluate this program:

   (define f (make-object frame% "my editor window" #f 600 800))
   (define t (make-object text%))
   (define ec (make-object editor-canvas% f t))
   (send t load-file "my-file.tex")
   (send f show #t)

That will open up a new frame that doesn't have any of the 
Scheme-specific editing commands in it. Of course, it doesn't have 
any menus for saving or anything else either, but you can either add 
them (read about menu-item%, menu%, and menu-bar% in the mred manual) 
or just send messages to `t' directly from the REPL when you want to 
save.

If you develop some kind of system for editing LaTeX files that gets 
pretty big, I suggest that you read about the tools interface in 
DrScheme. That should let you wire your code directly into DrScheme 
without having to run a program before editing LaTeX. (I would start 
with the CVS version if I were going to do that -- there have been 
some substantial improvements since 103)

Hope that helps.

Robby