Next: , Previous: , Up: Top   [Contents][Index]


11 Build Log Mode

Emacs-Guix provides major and minor modes for highlighting build logs. So when you have a file with a package build output—for example, a file returned by guix build --log-file … command (see Invoking guix build in The GNU Guix Reference Manual), you may call M-x guix-build-log-mode command in the buffer with this file. This major mode highlights some lines specific to build output and provides the following key bindings:

M-n

Move to the next build phase.

M-p

Move to the previous build phase.

TAB

Toggle (show/hide) the body of the current build phase.

S-TAB

Toggle (show/hide) the bodies of all build phases.

There is also M-x guix-build-log-minor-mode which also provides the same highlighting and the same key bindings as the major mode, but prefixed with C-c. You may find this minor mode useful for shell buffers (see Interactive Shell in The GNU Emacs Manual). It can be enabled there like this:

(add-hook 'shell-mode-hook 'guix-build-log-minor-mode)