Purescript development tools

This commit is contained in:
Andrea Ciceri 2021-11-03 23:28:49 +01:00 committed by Andrea Ciceri
parent 4d356b3a06
commit 4e8adcfafb
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
7 changed files with 104 additions and 32 deletions

View file

@ -0,0 +1,18 @@
(use-package nix-mode
:mode "\\.nix\\'"
:hook
(before-save . lsp-format-buffer))
(require 'sudo-utils)
(defun nixos-rebuild-switch ()
(interactive)
(sudo-utils-shell-command "nixos-rebuild switch"))
(defun nixos-rebuild-test ()
(interactive)
;; async-shell command should be sufficient, to check why it isn't
(sudo-utils-shell-command "nixos-rebuild test"))
(global-set-key [f6] 'nixos-rebuild-test)
(provide 'config-nix)