about summary refs log tree commit diff
path: root/users/glittershark
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-06-23T16·43-0400
committerglittershark <grfn@gws.fyi>2020-06-23T16·45+0000
commit19e54738d749b0a4f5bf065d4e980e2401fa2028 (patch)
tree034fa7e79cae1a385826873e023ada1747ece868 /users/glittershark
parentec84fde6b11c4e138a2a50dda89d1bf48b6aa5c1 (diff)
feat(users/glittershark): Jsonnet in emacs + system r/1070
Add jsonnet-mode to emacs, and install jsonnet in the development.nix
module in home-manager.

Change-Id: I11d6417b6a059de151dbb5407682059e0d5a7d3c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/564
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users/glittershark')
-rw-r--r--users/glittershark/emacs.d/config.el4
-rw-r--r--users/glittershark/emacs.d/packages.el2
-rw-r--r--users/glittershark/system/home/modules/development.nix1
3 files changed, 7 insertions, 0 deletions
diff --git a/users/glittershark/emacs.d/config.el b/users/glittershark/emacs.d/config.el
index 9038e0c569ef..c1ff282a3839 100644
--- a/users/glittershark/emacs.d/config.el
+++ b/users/glittershark/emacs.d/config.el
@@ -1210,3 +1210,7 @@
   (setq znc-servers
         '(("znc.gws.fyi" 5000 t
            ((freenode "glittershark" "Ompquy"))))))
+
+(use-package! jsonnet-mode
+  :bind (:map jsonnet-mode-map
+         ("g SPC" . jsonnet-eval-buffer)))
diff --git a/users/glittershark/emacs.d/packages.el b/users/glittershark/emacs.d/packages.el
index 63a753eec4f7..c311c77b2291 100644
--- a/users/glittershark/emacs.d/packages.el
+++ b/users/glittershark/emacs.d/packages.el
@@ -149,6 +149,8 @@
 (package! terraform-mode)
 (package! company-terraform)
 
+(package! jsonnet-mode)
+
 ;;;
 (package! znc
   :recipe (:host github
diff --git a/users/glittershark/system/home/modules/development.nix b/users/glittershark/system/home/modules/development.nix
index 39e964d1da3e..329b96029757 100644
--- a/users/glittershark/system/home/modules/development.nix
+++ b/users/glittershark/system/home/modules/development.nix
@@ -46,6 +46,7 @@ with lib;
     gnumake
     inetutils
     loc
+    jsonnet
 
     clj2nix