nixos/pkgsets/emacs/nix-mode.nix

12 lines
246 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
mkIf (elem "emacs::nix-mode" config.machine.pkgs) {
programs.emacs.init.usePackage.nix-mode = {
enable = true;
mode = [ ''"\\.nix\\'"'' ];
2021-11-07 16:05:02 +01:00
config = ''(setq nix-nixfmt-bin "nixfmt -w 150")'';
};
}