Function: just-ts-format-buffer

just-ts-format-buffer is an interactive and natively compiled function defined in just-ts-mode.el.

Signature

(just-ts-format-buffer)

Documentation

Formats your buffer containing justfile.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/1vmf8s52d6vniw28ckf3szxslimhfphb-emacs-packages-deps/share/emacs/site-lisp/elpa/just-ts-mode-20260319.1513/just-ts-mode.el
(defun just-ts-format-buffer ()
  "Formats your buffer containing justfile."
  (interactive)
  (let ((exit-code (call-process just-ts-executable nil nil nil "--unstable" "--fmt")))
    (if (eq exit-code 0)
        (progn
          (revert-buffer :ignore-auto :noconfirm)
          (message "Formatted"))
      (message "Format failed with exit code %s" exit-code))))