Working on Emacs
- now my custom Emacs package lives inside `pkgs/` - small org-mode updates - added custom Emacs commands to rebuild NixOS
This commit is contained in:
parent
ce354185e8
commit
54a41ac797
6 changed files with 73 additions and 51 deletions
|
@ -1,4 +1,14 @@
|
|||
(use-package nix-mode
|
||||
:mode "\\.nix\\'")
|
||||
|
||||
(provide 'nix)
|
||||
(require 'sudo-utils)
|
||||
|
||||
(defun nixos-rebuild-switch ()
|
||||
(interactive)
|
||||
(sudo-utils-shell-command "nixos-rebuild switch"))
|
||||
|
||||
(defun nixos-rebuild-test ()
|
||||
(interactive)
|
||||
(sudo-utils-shell-command "nixos-rebuild test"))
|
||||
|
||||
(provide 'nix)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue