UTOPRC(5)
π UTOPRC β bestie, it's the config file for utop (section 5 of the File Formats Manual, iykyk)
okay so real talk: this is the manual page for utoprc, aka the vibe-settings file for utop. sit down, grab a strawberry π, and let's get you literate.
β¨ NAME β¨
utoprc β the configuration file of utop π
β¨ SYNOPSIS β¨
~/.utoprc
β¨ DESCRIPTION β¨
okay so this page is literally here to explain the format of the ~/.utoprc file. it's a text file, it holds the configuration of utop, that's the whole deal π
- Comments start with a
! - Empty lines are just ignored, they're not the main character, they get skipped
Configuration lines are shaped like this, no cap:
<wildcard>: <value>
<wildcard> is allowed to contain the * asterisk character. and when it does? any key that matches the pattern gets the value after the colon. wildcard behavior, iconic π
The boolean key autoload can be set to false to disable the autoloading of files in $OCAML_TOPLEVEL_PATH/autoload at startup. yes, false disables it, that's the whole bit π¦
The key external-editor can be set to a command line. it's used to edit the input when you press C-x C-e. and it defaults to the contents of the EDITOR environment variable. so if it's acting weird, check EDITOR first, bestie π
The key profile may have the value dark or light. this is the same as calling UTop.set_profile in ~/.config/utop/init.ml. two ways, one outcome, periodt β¨
The following style keys are used by utop:
identifiermodulecommentdocconstantkeywordsymbolstringcharquotationerrordirectiveparenthesisblanks
For each of these keys, the following sub-keys are used:
key.foregroundkey.backgroundkey.boldkey.underlinekey.reversekey.blink
key.foreground and key.background are colors, and the others are booleans. so like, colors for the first two, yes/no vibes for the rest π
Colors may be one of the standard terminal colors:
blackredgreenyellowbluemagentacyanwhitelight-blacklight-redlight-greenlight-yellowlight-bluelight-magentalight-cyanlight-white
β¦or X11 colors, prefixed with "x-". for example:
identifier.foreground: x-goldenrod
Colors can also be given by their RGB components, written #RRGGBB. for example:
identifier.foreground: #5fbf7f
utop will choose the nearest color of the terminal when you specify an X11 color or a color given by its RGB components. so no, you don't get pixel-perfect, you get nearest, and that's the deal π
If you are using gnome-terminal or konsole, you can enable 256 colors by setting the environment variable TERM to "xterm-256color". do it. it's giving upgrade π§
β¨ FILES β¨
~/.utoprc
β¨ EXAMPLE β¨
here's a whole look, steal it, it's yours:
profile: dark
identifier.foreground: none
comment.foreground: x-chocolate1
doc.foreground: x-light-salmon
constant.foreground: x-aquamarine
keyword.foreground: x-cyan1
symbol.foreground: x-cyan1
string.foreground: x-light-salmon
char.foreground: x-light-salmon
quotation.foreground: x-purple
error.foreground: x-red
parenthesis.background: blue
β¨ AUTHOR β¨
JΓ©rΓ©mie Dimino <jeremie@dimino.org> β the original main character π we love them for this.
β¨ SEE ALSO β¨
and that's the whole page, bestie, you ate it π«Ά this beauty is from August 2011, UTOPRC(5), no notes, slay π
β¨
π¦ where this page comes from
- debian trixie: utop 2.15.0-1+b9 Β· BSD-3-Clause
- fedora 43: utop 2.16.0-1.fc43 Β· BSD-3-Clause
- fedora 44: utop 2.16.0-5.fc44 Β· BSD-3-Clause
- fedora 44: utop 2.17.0-2.fc44 Β· BSD-3-Clause
- nixos 26.05: ocaml5.4.1-utop 2.17.0
- nixpkgs unstable: ocaml5.5.1-utop 2.17.0
- ubuntu questing: utop 2.16.0-1build1
- ubuntu resolute: utop 2.16.0-1build6 Β· BSD-3-Clause
- ubuntu stonking: utop 2.17.0-1build2 Β· BSD-3-Clause
- (c) 2011, Jeremie Dimino <jeremie@dimino.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms