Editor Modes for Nix Files: Difference between revisions

From NixOS Wiki
imported>Mic92
No edit summary
imported>Matthewbauer
Link nix-mode to NixOS/nix-mode
Line 2: Line 2:


* Emacs
* Emacs
** [https://github.com/NixOS/nix/blob/master/misc/emacs/nix-mode.el nix-mode official] available in [https://melpa.org/ melpa]
** [https://github.com/NixOS/nix-mode nix-mode official] available in [https://melpa.org/ melpa]
** [https://github.com/matthewbauer/nix-mode @matthewbauer's nix-mode]
** [https://github.com/emacs-pe/nix-mode @marsam's nix-mode]
** [https://github.com/emacs-pe/nix-mode @marsam's nix-mode]
** [https://github.com/shlevy/nix-buffer nix-buffer]
** [https://github.com/shlevy/nix-buffer nix-buffer]

Revision as of 23:53, 22 August 2017

This is a list of editor modes for Nix syntax.

Usage:

{ # /etc/nixos/configuration.nix
  environment.systemPackages = [
    (pkgs.vim_configurable.customize {                                                                                                                                                                                                     
      name = "vim";                                                                                                                                                                                                                                                                                                                                 
      vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {                                                                                                                                                                                                                                                                                                                                                                                                     
        start = [ vim-nix ]; # load plugin on startup                                                                                                                                                                                                                                      
      };                                                                                                                                                                                                                                        
    })
  ];
}