about summary refs log tree commit diff
path: root/users/glittershark/emacs.d
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/emacs.d
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/emacs.d')
-rw-r--r--users/glittershark/emacs.d/config.el4
-rw-r--r--users/glittershark/emacs.d/packages.el2
2 files changed, 6 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