doomemacs/modules/lang/nix/config.el

27 lines
613 B
EmacsLisp
Raw Normal View History

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