Preferences are read from a file named prefs
in the
.j
directory. This directory is created automatically by j in the
home directory of the current user.
On Windows, from j's point of view, the home directory of the current user
normally defaults to C:\
. The default is actually the root
directory of the first writable drive, excluding drives A and B.
So, by default, your preferences file is ~/.j/prefs
on Unix and
C:\.j\prefs
on Windows.
You can specify a different home directory by starting j with the
--home
command line option:
j --home=C:\ArmedBearIn this case your home directory, as far as j is concerned, will be
C:\ArmedBear
, the .j
directory will be
C:\ArmedBear\.j
, and your preferences file will be
C:\ArmedBear\.j\prefs
.
The --home
command line option is available on Unix as well as
Windows.
The preferences file is an ordinary text file which will not exist until you specifically create it. You can open this file in j by simply specifying "prefs" in the Open File dialog or on the command line.
Each entry in the preferences file must be on a line by itself and must be of the form:
key=valueComments start with #, and values (but not keys) may contain embedded spaces. String values may be enclosed in double quotes. Property names (keys) are not case-sensitive, so "lineuparglist" and "lineUpArgList" (and, for that matter, "LINEUParglist" and "LiNeUpArGlIsT") are, in effect, the same as "lineupArglist", which is actually the official spelling.
Here's an example for Unix:
# # Unix # Path separator is colon. # sourcePath=/home/peter/j/src/org/armedbear/j:/home/peter/j/src includePath=/usr/include:/usr/src/linux/include/linux docPath=/home/peter/j/doc
Here's a similar example for Windows:
# # Windows # Path separator is semicolon. # Note that double backslashes are required! # sourcePath=C:\\j\\src\\org\\armedbear\\j;C:\\j\\src includePath=C:\\Program Files\\DevStudio\\vc\\include docPath=C:\\j\\doc
If you use j to edit your preferences file, the running instance of j automatically reloads your preferences when you save the changes to the file, so in most cases it is not necessary to restart j in order to pick up the new settings.
Many properties (notably colors, styles, and properties such as tab width and indent size) may be set globally and overridden on a mode-specific basis. For example:
color.text=black color.comment=gray JavaMode.color.text=blue JavaMode.color.comment=0 128 0 indentSize=8 JavaMode.indentSize=4Colors are normally specified by their RGB values:
color.selectionBackground=153 204 255Common colors may be specified by name:
color.text=black
The following properties are supported:
adjustAscent
See also: adjustDescent, adjustLeading
Default value: 0
adjustDescent
See also: adjustAscent, adjustLeading
Default value: 0
adjustLeading
See also: adjustAscent, adjustDescent
Default value: 0
antialias
Default value: false
attributesRequireQuotes
This property is ignored in XML mode; attribute values in XML are always enclosed in quotation marks.
Default value: true
attribution
A couple of substitutions are supported:
%d date and time of the original message %n sender's name (or address if name is missing)
Default value: "On %d, %n wrote:"
autoIndent
Default value: true
autoNewline
Default value: false
autoPasteLines
If false, the inserted text is always placed at the exact location of the caret.
Default value: true
autoReloadKeyMaps
Default value: false
See also: Key Mappings
autosaveNamedSessions
If false, the information in the named session file is only updated when you explicitly invoke saveSession.
Default value: false
See also: Sessions
autoSelectLine
Default value: true
backupDirectory
Default value: None
bcc
Default value: None
See also: Mail
blinkCaret
Default value: true
browser
Default value: None
browserOpts
Default value: None
changeMarkWidth
Default value: 4
See also: color.change, color.savedChange, showChangeMarks, nextChange, previousChange
checkEnabled
Default value: false
checkIdleBackground
Default value: 10
checkIdleForeground
Default value: 60
checkInterval
Default value: 60
clhsRoot
Default value: /usr/share/doc/hyperspec
See also: hyperspec
color.background
Default value: None
color.brace
Default value: None
color.caret
Default value: None
color.change
Default value: None
See also: color.savedChange, changeMarkWidth, showChangeMarks, nextChange, previousChange
color.comment
Default value: None
color.currentLineBackground
Default value: None
color.disabled
Default value: None
color.function
Default value: None
color.gutterBorder
Default value: None
See also: color.lineNumber, showLineNumbers
color.headerName
Default value: None
color.headerValue
Default value: None
color.keyword
Default value: None
color.lineNumber
Default value: None
See also: color.gutterBorder, showLineNumbers
color.matchingText
Default value: None
color.number
Default value: None
color.operator
Default value: None
color.preprocessor
Default value: None.
color.savedChange
Default value: None
See also: color.change, changeMarkWidth, showChangeMarks, nextChange, previousChange
color.selectionBackground
Default value: None
color.string
Default value: None
color.text
Default value: None
color.verticalRule
Default value: None
See also: verticalRule
confirmSend
Default value: false
debug
When debugging is enabled, debugging information is logged (in addition to errors), and all output sent to the log file is also sent to System.err, so it can be seen in the console window from which j was started.
Default value: false
See also: Logging
defaultEncoding
Default value: ISO8859_1
dialogFontName
Default value: None
See also: dialogFontSize, fontName, gutterFontName, textFieldFontName
dialogFontSize
Default value: 11
See also: dialogFontName, fontSize, gutterFontSize, textFieldFontSize
DirectoryMode.color.directory
Default value: None
DirectoryMode.color.marked
Default value: None
DirectoryMode.color.symlink
Default value: None
DirectoryMode.enableTree
Default value: true
dirSortDirectoriesFirst
Default value: !dirUseNativeFormat
dirUseNativeFormat
ls
to generate the directory
listing. This only works if you have a copy of ls
in your
path. If false, j's built-in directory format is used (and less
information is displayed).
Default value: false for Windows, true for Unix
docPath
Default value: None
emulateBold
Default value: false
enableDragText
Default value: true
enableExperimentalFeatures
Default value: false
enableItalics
Default value: true
enableTree
Default value: true
extendEnd
Default value: false
extendHome
Default value: false
extension
.class
, it is taken
to be a filename, rather than a class name, and in that case the file's
absolute pathname may be specified. If the absolute pathname is not specified,
or if the .class
extension is omitted, the class file in question
must be in the directory ~/.j
(Unix) or C:\.j
(Windows). When j starts up, the specified extension class is loaded by j's
extension class loader, a new instance of the extension class is created, and
its public void run
method is invoked.
Default value: None
filenameCompletionsExcludePattern
Default value: ^(CVS|RCS|SCCS|_darcs|(\\.(svn|hg|darcs|git))|(.+(~|\\.(class|cls|abcl|bak|sw[op]|a|o|obj|exe))))$
filenameCompletionsIgnoreCase
Default value: true
fontName
Default value: Monospaced
See also: fontSize, dialogFontName, gutterFontName
fontSize
Default value: 12
See also: fontName, dialogFontSize, gutterFontSize
ftpUsePassiveMode
Default value: true
globalKeyMap
writeGlobalKeyMap
.
Default value: None
gutterFontName
Default value: Same as normal display font
See also: gutterFontSize, fontName, dialogFontName, showLineNumbers
gutterFontSize
Default value: Same as normal display font
See also: gutterFontName, fontSize, dialogFontSize, showLineNumbers
highlightBrackets
Default value: false
See also: highlightMatchingBracket
highlightMatchingBracket
Default value: false
See also: highlightBrackets
HtmlMode.color.anchor
Default value: None
HtmlMode.color.comment
Default value: None
HtmlMode.color.image
Default value: None
HtmlMode.color.script
Default value: None
HtmlMode.color.table
Default value: None
HtmlMode.color.tableData
Default value: None
HtmlMode.color.tableRow
Default value: None
HtmlMode.color.tag
Default value: None
HtmlMode.fixCase
Default value: false
HtmlMode.tags
p=0This line tells j not to insert an end tag for the <P> tag. If you do want the end tag, use:
p=1It's not necessary to use a tag customization file unless you take issue with j's internal defaults. If you do use a tag customization file, it only needs to contain entries for the tags you want to customize.
Default value: None
HtmlMode.upperCaseAttributeNames
Default value: false
HtmlMode.upperCaseTagNames
Default value: true
httpProxy
Example:
httpProxy=192.168.1.1:3128
Default value: None
imapUseLocalCache
Each message is saved in a file named after its UID, in a directory specific to the mailbox in question, under ~/.j/mail/imap/cache.
Deleted messages are automatically removed from the cache by mailboxExpunge. The current implementation has no concept of expiration or aging of undeleted messages and imposes no limit on utilization of disk space.
Default value: true
See also: Mail
inbox
Default value: None
See also: openMailbox, Mail
includePath
Default value: None
See also: sourcePath, iList, checkPath, listIncludes
indentAfterBrace
if (foo) { bar(); // This line is indented because of the preceding '{'. }
See also: indentBeforeBrace
Default value: true
indentBeforeBrace
if (foo) { // This line is indented because it starts with '{'. bar(); }
See also: indentAfterBrace
Default value: false
indentLineFixWhitespace
If false, the indentation is changed only if the non-whitespace text of the line or lines in question does not already start in the correct column.
Default value: false
indentSize
Default value: 4
indentStrings
By default, the second and subsequent lines of multiline strings are not indented at all and begin at the left margin, like this:
(defun foo () (format t "pretend that this is a very long string"))There is one exception. If any line of the string ends with '~', the next line is indented to line up with the beginning of the string:
(defun foo () (format t "pretend that this is a ~ very long string"))If indentStrings is true, the second and subsequent lines of multiline strings are always indented to line up with the beginning of the string:
(defun foo () (format nil "pretend that this is a very long string"))In general, this is probably not what you want, since it inserts an arbitrary amount of whitespace in the middle of the string, but if you can live with that you do end up with better-looking code.
Default value: false
jdkDocPath
See also: jdkHelp
Default value: None
jdkSourcePath
See also: source
Default value: None
JList.fixedCellHeight
Default value: 0
keywords
LispMode.keywords = /home/peter/lisp.keywordsThe keyword list should be an ordinary text file with one keyword per line.
For examples of the format, take a look at the various .keywords files in org/armedbear/j. There is such a file for each mode, containing the default keyword list for that mode.
Note that the mode prefix (e.g. "LispMode.") is required; there is no global keywords file.
Default value: None
lineupArglist
veryLongFunctionName(arg1, arg2);If false, the indentation will look like this:
veryLongFunctionName(arg1, arg2);
Default value: true
listThreads
Default value: 0
See also: Logging
Log.enabled
Log.maxBackupIndex
Default value: 0
See also: Logging, Log.maxFileSize
Log.maxFileSize
When the log file exceeds its maximum size, it is rolled over to the file ~/.j/log.0, which in turn is rolled over to ~/.j/log.1, etc.
Default value: 100000
See also: Logging, Log.maxBackupIndex
nntpReadTimeout
Default value: 0
org.xml.sax.driver
org.xml.sax.driver = org.apache.xerces.parsers.SAXParserIf this property is not specified, the XML parser provided as part of the Java runtime library will be used.
Default value: None
See also: XML Mode
p4AutoEdit
Default value: false
parensRequireSpaces
Default value: false
patchMode
For example, if the value of this property is ".orig", the first backup of the file foo.bar will be made to the file foo.bar.orig in the same directory.
The diff command, when invoked with no arguments, diffs the file associated with the current buffer against its patchMode backup file (if it exists).
Default value: None
PHPMode.color.var
Default value: None
popExpungeDeletedMessagesOnServer
Default value: false
See also: Mail
popKeepMessagesOnServer
Default value: true
See also: Mail
printerFontSize
Default value: 10
removeTrailingWhitespace
Default value: false
reorderBuffers
If reorderBuffers is 0, no reordering is performed; buffers are left in the order in which they were originally opened.
If reorderBuffers is 1, buffers opened (or activated) by openFile (and similar commands) are placed after the current buffer in the list.
If reorderBuffers is 2, reordering is also performed when you use the sidebar buffer list to switch to a different buffer.
Buffers are never reordered when you use nextBuffer or prevBuffer to switch between buffers.
If sortBufferList is true, this property is ignored.
Default value: 1
See also: sortBufferList
restrictCaret
Default value: true
saveInPlace
If false, FTP saves are first written to a temporary file, which is then renamed to replace the destination file, and finally the file permissions that were in effect before the save are restored using the SITE CHMOD command. This approach is normally safer since the destination file is less likely to be lost or truncated if a network problem prevents successful completion of the save, but it may not preserve all attributes of the destination file.
Default value: false
scrollCaret
If false, the caret is allowed to scroll out of the edit window when you scroll the window vertically.
Scrolling never relocates the caret if a selection is active in the edit window, regardless of the value of this property.
Default value: true
shellFileName
Default value:
ShellMode.color.input
Default value: None
ShellMode.color.prompt
Default value: None
shellOutputLimit
Default value: 1000
shellPromptPattern
Default value: "^[^#$%>]*[#$%>] *|^: *"
sshPromptPattern
Default value: "^[^#$%>]*[#$%>] *|^: *"
sshTimeout
Default value: 250 milliseconds
showChangeMarks
Default value: true
See also: color.change, color.savedChange, changeMarkWidth, nextChange, previousChange
showLineNumbers
Default value: false
See also: gutterFontName, gutterFontSize, color.gutterBorder, color.lineNumber
sortBufferList
Default value: false
See also: reorderBuffers
sourcePath
Default value: None
See also: includePath
stampFormat
Default value: "MMM d yyyy h:mm a"
StatusBar.displayContext
Default value: 1
StatusBar.displayLineCount
Default value: false
StatusBar.displayLineSeparator
Default value: false
StatusMode.color.added
Default value: None
StatusMode.color.deleted
Default value: None
StatusMode.color.changed
Default value: None
StatusMode.color.conflict
Default value: None
StatusMode.color.unkown
Default value: None
StatusMode.color.nochange
Default value: None
StatusMode.color.ignored
Default value: None
style.comment
Default value: None
style.text
Default value: None
style.directory
Default value: None
style.function
Default value: None
style.keyword
Default value: None
style.marked
Default value: None
style.prompt
Default value: None
tabAlwaysIndent
If false, the behavior of the tab command depends on the location of the caret.
If the caret is at the very beginning of the text on the line, or in the whitespace to the left of the text, tab calls indentLine. If the caret is in the midst of the actual text on the line, tab inserts either a single tab character or the equivalent number of spaces, depending on the setting of the useTabs property.
Default value: true
tabWidth
Default value: 8
telnetPromptPattern
Default value: "^[^#$%>]*[#$%>] *|^: *"
ToolBar.iconSize
Default value: 24
ToolBar.isRollover
Default value: true
ToolBar.showIcons
Default value: true
ToolBar.showText
Default value: true
textFieldFontName
Default value: Monospaced
See also: textFieldFontSize, dialogFontName
textFieldFontSize
Default value: None
See also: textFieldFontName, dialogFontSize
theme
Default value: None
See also: themePath
themePath
Default value: None
See also: theme
useIncrementalFind
Default value: false
useMenuMnemonics
Default value: true
useTabs
Default value: false
See also: detabRegion, entabRegion
userFullName
Default value: None
See also: userMailAddress, Mail
userMailAddress
Default value: None
See also: userFullName, Mail
verticalRule
Default value: 0
See also: color.verticalRule
verticalScrollIncrement
Default value: 5
wrapCol
Default value: 80
XmlMode.color.attribute
Default value: None
XmlMode.color.comment
Default value: None
XmlMode.color.cdata
Default value: None
XmlMode.color.delimiter
Default value: None
XmlMode.color.namespace
Default value: None
XmlMode.color.tag
Default value: None
XmlMode.fixCase
Default value: false
XmlMode.upperCaseAttributeNames
Default value: false
XmlMode.upperCaseTagNames
Default value: true