fdeb770103
* [nixos] Add nixos-format-on-save |
||
---|---|---|
.. | ||
img | ||
config.el | ||
packages.el | ||
README.org |
NixOS layer
Description
This layer adds tools for better integration of Emacs in NixOS.
Features:
- Nix-mode using nix-mode
- Automatic formatting via nixfmt
- Auto-completion of NixOS Options using company-nixos-options
- Helm Lookup for NixOS Options helm-nixos-options
Install
Layer
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add nixos
to the existing dotspacemacs-configuration-layers
list in this
file.
Format on save
To enable automatic formatting on save, set the layer variable
nixos-format-on-save
to t
:
(nixos :variables nixos-format-on-save t)
Configuration
On some systems, company-nixos-options
may be very slow. If this is the case,
see the section on disabling the disabling auto-complete for the nixos
layer.
Key bindings
NixOS Options
Key binding | Description |
---|---|
SPC h > |
Call helm-nixos-options |
SPC m = = |
Format buffer using nixfmt |