{"size": 2412, "ext": "scrbl", "max_stars_repo_path": "pkgs/racket-doc/scribblings/reference/init.scrbl", "max_stars_repo_name": "lkh01/racket", "max_stars_repo_stars_event_min_datetime": "2018-07-29T04:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T16:11:17.000Z", "max_issues_repo_path": "pkgs/racket-doc/scribblings/reference/init.scrbl", "max_issues_repo_name": "lkh01/racket", "max_issues_repo_issues_event_min_datetime": "2017-08-25T20:26:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T17:48:40.000Z", "max_forks_repo_path": "pkgs/racket-doc/scribblings/reference/init.scrbl", "max_forks_repo_name": "lkh01/racket", "max_forks_repo_forks_event_min_datetime": "2016-04-25T11:47:57.000Z", "max_forks_repo_forks_event_max_datetime": "2017-05-09T14:52:48.000Z"}
{"max_stars_count": 10, "max_issues_count": 15, "max_forks_count": 3, "avg_line_length": 41.5862068966, "max_line_length": 84, "alphanum_fraction": 0.7703150912}
#lang scribble/doc
@(require "mz.rkt"
          (for-label racket/pretty racket/gui/base setup/dirs))

@title{Init Libraries}

@defmodule*/no-declare[(racket/init)]{The 
 @racketmodname[racket/init] library is the default start-up
 library for Racket. It re-exports the 
 @racketmodname[racket], @racketmodname[racket/enter] and 
 @racketmodname[racket/help] libraries, and it sets 
 @racket[current-print] to use @racket[pretty-print].}

@defmodule*/no-declare[(racket/interactive)]{
 The @racketmodname[racket/interactive] is the default start
 up library when the REPL begins. It is not run if the 
 @Flag{q}/@DFlag{no-init-file} is specified. The interactive
 file can be changed by modifying @racket['interactive-file] in the 
 @filepath{config.rktd} file found in 
 @racket[(find-config-dir)]. Alternative, if the file
 @filepath{interactive.rkt} exists in 
 @racket[(find-system-path 'addon-dir)] it is run rather
 than the installation wide interactive module.

 The default interactive module starts @racketmodname[xrepl] and
 runs the @racket[(find-system-path 'init-file)] file in the users home directory. A
 different interactive file can keep this behavior by
 requiring @racketmodname[racket/interactive].
 
 @history[#:added "6.7"]}


@defmodule*/no-declare[(racket/language-info)]{The
@racketmodname[racket/language-info] library provides a
@racketidfont{get-info} function that takes any value and returns
another function; the returned function takes a key value and a
default value, and it returns @racket['(#(racket/runtime-config
configure #f))] if the key is @racket['configure-runtime] or the
default value otherwise.}

@guidealso["module-runtime-config"]

The vector @racket['#(racket/language-info get-info #f)] is suitable
for attaching to a module as its language info to get the same
language information as the @racket[racket/base] language.

@defmodule*/no-declare[(racket/runtime-config)]{The
@racketmodname[racket/runtime-config] library provides a
@racketidfont{configure} function that takes any value
and sets @racket[print-as-expression]
to @racket[#t].}

The vector @racket[#(racket/runtime-config configure #f)] is suitable
as a member of a list of runtime-configuration specification (as
returned by a module's language-information function for the key
@racket['configure-runtime]) to obtain the same runtime configuration as
for the @racketmodname[racket/base] language.
