ljos / jq-mode

Emacs major mode for editing jq queries.
GNU General Public License v3.0
110 stars 12 forks source link
emacs emacs-lisp emacs-mode jq

** Use yq for yaml

It is possible to use [[https://github.com/kislyuk/yq][yq]] to process yaml with the interactive mode instead:

+BEGIN_SRC emacs-lisp

 (setq jq-interactive-command "yq"
       jq-interactive-font-lock-mode #'yaml-mode
       jq-interactive-default-options "--yaml-roundtrip")

+END_SRC

** jq specific header arguments

=ob-jq= provides some additional header arguments: