about summary refs log tree commit diff
path: root/users/sterni/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'users/sterni/emacs')
-rw-r--r--users/sterni/emacs/default.nix1
-rw-r--r--users/sterni/emacs/init.el2
2 files changed, 3 insertions, 0 deletions
diff --git a/users/sterni/emacs/default.nix b/users/sterni/emacs/default.nix
index 5da28ccfda82..f7bdf21a025e 100644
--- a/users/sterni/emacs/default.nix
+++ b/users/sterni/emacs/default.nix
@@ -15,6 +15,7 @@ let
     epkgs.melpaPackages.adoc-mode
     epkgs.melpaPackages.dockerfile-mode
     epkgs.melpaPackages.haskell-mode
+    epkgs.melpaPackages.jq-mode
     epkgs.melpaPackages.markdown-mode
     epkgs.melpaPackages.nix-mode
     epkgs.melpaPackages.sly
diff --git a/users/sterni/emacs/init.el b/users/sterni/emacs/init.el
index 13a2caa90da8..4b868cb242d1 100644
--- a/users/sterni/emacs/init.el
+++ b/users/sterni/emacs/init.el
@@ -152,6 +152,8 @@
   :custom bqn-mode-map-prefix "C-s-") ; probably rather using C-\
 (use-package yaml-mode)
 (use-package dockerfile-mode)
+(use-package jq-mode
+  :config (add-to-list 'auto-mode-alist '("\\.jq\\'" . jq-mode)))
 (use-package rust-mode)
 (use-package sly
   :after evil