Fix (cached-)nix-shell interpreter-mode-alist entries

By combining them. Also emit a more helpful message if the
sub-interpreter cannot be read.
This commit is contained in:
Henrik Lissner 2020-04-14 15:37:11 -04:00
parent 169fe6a7f4
commit 483a7caf0f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 3 additions and 3 deletions

View file

@ -1,8 +1,7 @@
;;; 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)
:interpreter ("\\(?:cached-\\)?nix-shell" . +nix-shell-init-mode)
:mode "\\.nix\\'"
:config
(set-company-backend! 'nix-mode 'company-nixos-options)