blob: 16f4b0959cf13cc9f198f0426275bb884dff9cae [file] [log] [blame]
Kurt B. Kaiser282f1222003-05-18 02:21:55 +00001# IDLE reads several config files to determine user preferences. This
Steven M. Gavac11ccf32001-09-24 09:43:17 +00002# file is the default config file for general idle settings.
Kurt B. Kaiser282f1222003-05-18 02:21:55 +00003#
Steven M. Gavac11ccf32001-09-24 09:43:17 +00004# When IDLE starts, it will look in
5# the following two sets of files, in order:
6#
Terry Jan Reedyf46b7822016-11-07 17:15:01 -05007# default configuration files in idlelib
8# --------------------------------------
9# config-main.def default general config file
10# config-extensions.def default extension config file
11# config-highlight.def default highlighting config file
12# config-keys.def default keybinding config file
Steven M. Gavac11ccf32001-09-24 09:43:17 +000013#
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050014# user configuration files in ~/.idlerc
15# -------------------------------------
16# config-main.cfg user general config file
17# config-extensions.cfg user extension config file
18# config-highlight.cfg user highlighting config file
19# config-keys.cfg user keybinding config file
Kurt B. Kaiser3f42a6d2003-08-09 01:51:28 +000020#
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050021# On Windows, the default location of the home directory ('~' above)
22# depends on the version. For Windows 10, it is C:\Users\<username>.
Steven M. Gavac11ccf32001-09-24 09:43:17 +000023#
24# Any options the user saves through the config dialog will be saved to
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050025# the relevant user config file. Reverting any general or extension
26# setting to the default causes that entry to be wiped from the user
27# file and re-read from the default file. This rule applies to each
28# item, except that the three editor font items are saved as a group.
Kurt B. Kaiser8e92bf72003-01-14 22:03:31 +000029#
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050030# User highlighting themes and keybinding sets must have (section) names
31# distinct from the default names. All items are added and saved as a
32# group. They are retained unless specifically deleted within the config
33# dialog. Choosing one of the default themes or keysets just applies the
34# relevant settings from the default file.
35#
36# Additional help sources are listed in the [HelpFiles] section below
37# and should be viewable by a web browser (or the Windows Help viewer in
38# the case of .chm files). These sources will be listed on the Help
39# menu. The pattern, and two examples, are
40#
Kurt B. Kaiser282f1222003-05-18 02:21:55 +000041# <sequence_number = menu item;/path/to/help/source>
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050042# 1 = IDLE;C:/Programs/Python36/Lib/idlelib/help.html
43# 2 = Pillow;https://pillow.readthedocs.io/en/latest/
Kurt B. Kaiser8e92bf72003-01-14 22:03:31 +000044#
Terry Jan Reedyf46b7822016-11-07 17:15:01 -050045# You can't use a semi-colon in a menu item or path. The path will be
46# platform specific because of path separators, drive specs etc.
47#
48# The default files should not be edited except to add new sections to
49# config-extensions.def for added extensions . The user files should be
50# modified through the Settings dialog.
Steven M. Gavac11ccf32001-09-24 09:43:17 +000051
52[General]
Kurt B. Kaiser8e92bf72003-01-14 22:03:31 +000053editor-on-startup= 0
Kurt B. Kaiser6c638b62003-05-26 06:23:10 +000054autosave= 0
Ɓukasz Langa41c19102011-06-07 15:19:44 +020055print-command-posix=lpr %%s
56print-command-win=start /min notepad /p %%s
Kurt B. Kaiser6c8579e2003-06-01 01:08:32 +000057delete-exitfunc= 1
Steven M. Gavac11ccf32001-09-24 09:43:17 +000058
59[EditorWindow]
Steven M. Gavac11ccf32001-09-24 09:43:17 +000060width= 80
Kurt B. Kaiser05391692003-05-26 20:35:53 +000061height= 40
Terry Jan Reedyd87d1682015-08-01 18:57:33 -040062font= TkFixedFont
Terry Jan Reedy0180cf62016-11-07 23:14:53 -050063# For TkFixedFont, the actual size and boldness are obtained from tk
64# and override 10 and 0. See idlelib.config.IdleConf.GetFont
Kurt B. Kaiser05391692003-05-26 20:35:53 +000065font-size= 10
Steven M. Gavac112cd82002-01-22 05:56:40 +000066font-bold= 0
Kurt B. Kaiser6c638b62003-05-26 06:23:10 +000067encoding= none
Steven M. Gavac11ccf32001-09-24 09:43:17 +000068
69[Indent]
70use-spaces= 1
71num-spaces= 4
Steven M. Gavac11ccf32001-09-24 09:43:17 +000072
73[Theme]
Kurt B. Kaiser282f1222003-05-18 02:21:55 +000074default= 1
Steven M. Gavaad4f5322002-01-03 12:05:17 +000075name= IDLE Classic
Terry Jan Reedyd0c0f002015-11-12 15:02:57 -050076name2=
77# name2 set in user config-main.cfg for themes added after 2015 Oct 1
Steven M. Gavac11ccf32001-09-24 09:43:17 +000078
79[Keys]
Kurt B. Kaiser282f1222003-05-18 02:21:55 +000080default= 1
Terry Jan Reedy9bdb1ed2016-07-10 13:46:34 -040081name=
82name2=
83# name2 set in user config-main.cfg for keys added after 2016 July 1
Steven M. Gavac11ccf32001-09-24 09:43:17 +000084
Kurt B. Kaiser0676dfd2005-02-03 01:37:14 +000085[History]
86cyclic=1
87
Steven M. Gava085eb1b2002-02-05 04:52:32 +000088[HelpFiles]