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


7 Guix Prettify Mode

Emacs-Guix also comes with “guix-prettify.el”. It provides a minor mode for abbreviating store file names by replacing hash sequences of symbols with “…”:

/gnu/store/72f54nfp6g1hz873w8z3gfcah0h4nl9p-foo-0.1
⇒ /gnu/store/…-foo-0.1
M-x guix-prettify-mode

Enable/disable prettifying for the current buffer.

M-x global-guix-prettify-mode

Enable/disable prettifying globally.

If you wish to enable global-guix-prettify-mode automatically on Emacs start, you may do it by adding the following line to your Emacs init file:

(add-hook 'after-init-hook 'global-guix-prettify-mode)

If you want to enable it only for specific major modes, add it to the mode hooks (see Hooks in The GNU Emacs Manual), for example:

(add-hook 'shell-mode-hook 'guix-prettify-mode)
(add-hook 'dired-mode-hook 'guix-prettify-mode)