Update lang/nix to reflect changes upstream
+ Restore nix-mode entry in auto-mode-alist + Add .drv entry to auto-mode-alist + Minor refactor for def-package! blocks
This commit is contained in:
parent
5663778e36
commit
e0f2c260a1
2 changed files with 9 additions and 5 deletions
|
@ -1,8 +1,10 @@
|
|||
;;; lang/nix/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(after! nix-mode
|
||||
(def-package! nix-mode
|
||||
:mode "\\.nix\\'"
|
||||
:config
|
||||
(set-company-backend! 'nix-mode 'company-nixos-options)
|
||||
|
||||
|
||||
(map! :map nix-mode-map
|
||||
:localleader
|
||||
:n "f" #'nix-update-fetch
|
||||
|
@ -14,8 +16,11 @@
|
|||
(:when (featurep! :completion helm)
|
||||
:n "o" #'helm-nixos-options)))
|
||||
|
||||
(def-package! nix-drv-mode
|
||||
:mode "\\.drv\\'")
|
||||
|
||||
(def-package! nix-update
|
||||
:commands (nix-update-fetch))
|
||||
:commands nix-update-fetch)
|
||||
|
||||
(def-package! nix-repl
|
||||
:commands (nix-repl-show))
|
||||
:commands nix-repl-show)
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
;;; lang/nix/packages.el
|
||||
|
||||
(package! nix-mode)
|
||||
|
||||
(package! nix-update)
|
||||
|
||||
(when (featurep! :completion company)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue