feat: Add nix-mode & nix-config function

* install nix-mode by default
* add a function to quickly open the system configuration.nix
This commit is contained in:
Vincent Ambo 2017-10-15 20:23:51 +02:00
parent af89133821
commit 5e48ce3f9b
3 changed files with 9 additions and 0 deletions

View file

@ -33,6 +33,7 @@
markdown-mode+
multiple-cursors
multi-term
nix-mode
paredit
password-store
pkgbuild-mode

View file

@ -15,6 +15,9 @@
'(ns-alternate-modifier (quote none))
'(ns-command-modifier (quote control))
'(ns-right-command-modifier (quote meta))
'(package-selected-packages
(quote
(fish-mode nix-mode yaml-mode undo-tree terraform-mode switch-window smart-mode-line rust-mode rainbow-mode rainbow-delimiters puppet-mode pkgbuild-mode password-store paredit multi-term multiple-cursors markdown-mode+ magit iy-go-to-char idle-highlight-mode hi2 helm haskell-mode gruber-darker-theme go-mode flycheck erlang dockerfile-mode confluence browse-kill-ring ag ace-jump-mode)))
'(require-final-newline (quote visit-save)))
(custom-set-faces
;; custom-set-faces was added by Custom.

View file

@ -111,4 +111,9 @@ Including indent-buffer, which should not be called automatically on save."
(interactive)
(eww "https://blog.fefe.de/"))
;; Open this machines NixOS config
(defun nix-config ()
(interactive)
(find-file "/etc/nixos/configuration.nix"))
(provide 'functions)