On some Nix setups, company completion via the Nix repl process can be extremely slow and hang emacs. This commit adds an option toggle to disable it in the `nixos` layer. The default behavior is unchanged. Also updates the comment and license headers to be consistent with other layers.
1.3 KiB
1.3 KiB
NixOS layer
Description
This layer adds tools for better integration of Emacs in NixOS.
Features:
- Nix-mode using nix-mode
- 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.
Configuration
Toggle whether company-nixos-options
completion is enabled (defaults to t
).
(setq-default dotspacemacs-configuration-layers
'((nixos :variables nixos-enable-company t)))
Key bindings
NixOS Options
Key binding | Description |
---|---|
SPC h > |
Call helm-nixos-options |