This is a major mode for Emacs made for editing ‘tupfiles’, files used by the Tup build system.
Tup mode provides syntax highlighting for all of the elements of tupfiles, such as rule definitions, user-defined variables, macros, flags, bin variables, and so on. The mode also allows you to execute Tup commands. It binds the following key sequences:
C-c C-i
:tup init
C-c C-u
:tup upd
C-c C-m
:tup monitor
C-c C-s
:tup stop
If you use a prefix argument with C-c C-u
, e.g. if you press C-u C-c C-u
, then Tup mode will prompt you for the name of a
variant. It will then run
Tup to build that specific variant. And in either case the command
will show you a *Tup*
buffer containing the output from Tup so that
you can see if the build succeeded or not.