emacs: add nix-mode

use nixpkgs-fmt instead of nixfmt

nix repl is started including nixpkgs, using --file, instead of --expr
with an import like the helptext suggests, because it consistently is
slightly faster
This commit is contained in:
xfnw 2022-11-23 01:25:57 -05:00
parent df6b586ae7
commit 4723b14fa3
1 changed files with 3 additions and 1 deletions

4
.emacs
View File

@ -62,6 +62,8 @@
'(lui-logging-directory (concat user-emacs-directory "irclogs"))
'(lui-logging-flush-delay 2)
'(menu-bar-mode nil)
'(nix-nixfmt-bin "nixpkgs-fmt")
'(nix-repl-executable-args '("repl" "--file" "<nixpkgs>"))
'(org-agenda-files '("."))
'(org-agenda-start-on-weekday 0)
'(org-default-notes-file "~/org/notes.org")
@ -96,7 +98,7 @@
("f" . "fixme")))
'(org-todo-keywords '((sequence "TODO" "DELAYED" "RERUN" "|" "DONE")))
'(package-selected-packages
'(circe badwolf-theme evil elpher gruvbox-theme sudo-edit company))
'(nix-mode circe badwolf-theme evil elpher gruvbox-theme sudo-edit company))
'(sudo-edit-indicator-mode t)
'(tab-always-indent nil)
'(tool-bar-mode nil)