The Racket repository
![]() For the record, a way to do this permanently is to add something like this to your ~/.racketrc: (eval '(begin (saved-values-char #\~) (defcommand eli "stuff" "eli says" ["Make eli say stuff"] (printf "Eli says: ~a\n" (getarg 'line))) (defcommand er #f "alias for errortrace" ["Runs errortrace"] (run-command 'errortrace))) (module->namespace 'xrepl/xrepl)) But this is too stupid even for a section that has "Hacking" in its title. There should definitely be an organized way to do this. This will require several things: * A decent API for doing these things for user code. (So the above `eval' turns to a `require' for your file which uses this API.) This goes beyond just documenting what's in there -- there are issues to resolve like some argument reading protocol (separating the declaration of argument types from the command implementation code), so a new command can call another with arguments that it reads. * There should also be some ,set command for customization options (reading and changing) and code to use the preference file for doing that. I almost started to do this, but currently there are only three values that this could apply to (`saved-values-char', `-number', and `wrap-column' (which might be better to dump and use `pretty-print-columns' instead)). * Also, it might be nice to have some command to do the same for simple aliases. (But this might get into shady parsing issues if it's more than just "I want `foo' to be an alias for an existing `bar' command".) |
||
---|---|---|
collects | ||
doc | ||
man/man1 | ||
src | ||
.gitattributes | ||
.gitignore | ||
.mailmap | ||
README |
The Racket programming language =============================== Important executables: * DrRacket: Racket's integrated development environment (start here!). * Racket: the main command-line entry point for running racket programs and scripts. * GRacket: the GUI-mode Racket executable. * raco: Racket's command-line toolset. More Information ---------------- Racket comes with extensive documentation: use DrRacket's `Help' menu, or run `raco docs'. Also, visit us at http://racket-lang.org/ for more Racket resources. Instructions for building Racket from source are in src/README. License ------- Racket Copyright (c) 2010-2011 PLT Scheme Inc. Racket is distributed under the GNU Lesser General Public License (LGPL). This means that you can link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular means that you must release the source code for the modified software. See doc/release-notes/COPYING.txt for more information.