lang/nix: add a repl handler

This commit is contained in:
Henrik Lissner 2020-08-20 02:29:56 -04:00
parent d23d18d7a4
commit 4841062db9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,13 @@
(nixos-options-doc-buffer
(nixos-options-get-documentation-for-option candidate))))
;;;###autoload
(defun +nix/open-repl ()
"Open a nix repl."
(interactive)
(nix-repl-show)
(current-buffer))
;;;###autoload
(defun +nix/lookup-option (&optional initial-input)
"Look up documentation on a nix option."