about summary refs log tree commit diff
path: root/init/functions.el
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-10-15T18·23+0200
committerVincent Ambo <tazjin@gmail.com>2017-10-15T18·23+0200
commit5e48ce3f9b210078fb99c4d173f223c2da0379b0 (patch)
treebbca6971ed82b39d49434d755a83e6804ac0b039 /init/functions.el
parentaf8913382132e15266b244a5b0acc9f1ddd1e180 (diff)
feat: Add nix-mode & nix-config function
* install nix-mode by default
* add a function to quickly open the system configuration.nix
Diffstat (limited to 'init/functions.el')
-rw-r--r--init/functions.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/init/functions.el b/init/functions.el
index 29d07f81120a..a0f4d59456f5 100644
--- a/init/functions.el
+++ b/init/functions.el
@@ -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)