Resolve major mode for (cached)-nix-shell scripts

This commit is contained in:
Henrik Lissner 2020-02-08 07:14:40 -05:00
parent 014385a9f6
commit 49c7cf8172
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 23 additions and 0 deletions

View file

@ -1,6 +1,8 @@
;;; lang/nix/config.el -*- lexical-binding: t; -*-
(use-package! nix-mode
:interpreter ("cached-nix-shell" . +nix-shell-init-mode)
:interpreter ("nix-shell" . +nix-shell-init-mode)
:mode "\\.nix\\'"
:config
(set-company-backend! 'nix-mode 'company-nixos-options)