clean-up + add helm-nixos-options

This commit is contained in:
Patrick Elliott 2018-07-17 09:56:52 +02:00
parent 6b23692985
commit 0aa351842c
2 changed files with 18 additions and 11 deletions

View file

@ -1,21 +1,16 @@
;;; config.el --- description -*- lexical-binding: t; -*-
(def-package! company-nixos-options
:when (featurep! :completion company)
:after nix-mode
:config
(set-company-backend! 'nix-mode 'company-nixos-options))
(def-package! nix-update
:after nix-mode
:commands (nix-update-fetch))
(def-package! nix-repl
:after nix-mode
:commands (nix-repl-show))
(def-package! nix-mode
:config
(def-package! helm-nixos-options
:when (featurep! :completion helm)
:commands (helm-nixos-options))
(after! nix-mode
(map! :map nix-mode-map
:localleader
:n "f" #'nix-update-fetch
@ -23,4 +18,12 @@
:n "r" #'nix-repl-show
:n "s" #'nix-shell
:n "b" #'nix-build
:n "u" #'nix-unpack))
:n "u" #'nix-unpack)
(when (featurep! :completion helm)
(map! :map nix-mode-map
:localleader
:n "o" #'helm-nixos-options))
(when (featurep! :completion company)
(set-company-backend! 'nix-mode 'company-nixos-options)))