doomemacs/modules/lang/nix/config.el

27 lines
634 B
EmacsLisp
Raw Normal View History

;;; 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))
2018-07-16 17:09:28 +02:00
(def-package! nix-update
:after nix-mode
:commands (nix-update-fetch))
2018-07-16 17:10:18 +02:00
(def-package! nix-repl
:after nix-mode
:commands (nix-repl-show))
2018-07-16 17:10:57 +02:00
(def-package! nix-mode
:config
(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
:n "u" #'nix-unpack))