Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/add-flags-to-just-comman…
Browse files Browse the repository at this point in the history
…d' into feature/make-justl-justfile-a-safe-buffer-local-var
  • Loading branch information
johnhamelink committed Jun 4, 2023
2 parents 1feb09e + d355741 commit dac5413
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion justl.el
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@
:group 'justl
:safe 'stringp)

(defcustom justl-args ""
"Pass arguments to the just executable itself."
:type 'string
:group 'justl
:safe 'stringp)

(defcustom justl-recipe-width 20
"Width of the recipe column."
:type 'integer
Expand Down Expand Up @@ -415,7 +421,7 @@ ARGS is a ist of arguments."
(setq process-name justl-executable))
(let ((buffer-name justl--output-process-buffer)
(error-buffer (justl--process-error-buffer process-name))
(cmd (append (list justl-executable (justl--justfile-argument)) args))
(cmd (append (list justl-executable justl-args (justl--justfile-argument)) args))
(mode 'justl-compile-mode))
(when (get-buffer buffer-name)
(kill-buffer buffer-name))
Expand Down

0 comments on commit dac5413

Please sign in to comment.