2018-07-17 13:23:33 +02:00
|
|
|
;;; lang/nix/config.el -*- lexical-binding: t; -*-
|
2018-07-17 09:56:52 +02:00
|
|
|
|
|
|
|
(after! nix-mode
|
2018-07-17 13:23:33 +02:00
|
|
|
(set-company-backend! 'nix-mode 'company-nixos-options)
|
|
|
|
|
2018-07-16 17:10:57 +02:00
|
|
|
(map! :map nix-mode-map
|
|
|
|
:localleader
|
|
|
|
:n "f" #'nix-update-fetch
|
|
|
|
:n "p" #'nix-format-buffer
|
|
|
|
:n "r" #'nix-repl-show
|
|
|
|
:n "s" #'nix-shell
|
|
|
|
:n "b" #'nix-build
|
2018-07-17 13:23:33 +02:00
|
|
|
:n "u" #'nix-unpack
|
|
|
|
(:when (featurep! :completion helm)
|
|
|
|
:n "o" #'helm-nixos-options)))
|
2018-07-17 09:56:52 +02:00
|
|
|
|
2018-07-17 13:23:33 +02:00
|
|
|
(def-package! nix-update
|
|
|
|
:commands (nix-update-fetch))
|
2018-07-17 09:56:52 +02:00
|
|
|
|
2018-07-17 13:23:33 +02:00
|
|
|
(def-package! nix-repl
|
|
|
|
:commands (nix-repl-show))
|