Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 492c0e5

Browse files
committed
Set compile-command to "zig build"
This replaces the default "make -k" command for M-x compile.
1 parent f55e425 commit 492c0e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zig-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ This is written mainly to be used as `end-of-defun-function' for Zig."
452452
(setq-local indent-tabs-mode nil) ; Zig forbids tab characters.
453453
(setq-local syntax-propertize-function 'zig-syntax-propertize)
454454
(setq-local imenu-generic-expression zig-imenu-generic-expression)
455+
(setq-local compile-command "zig build")
455456
(setq buffer-file-coding-system 'utf-8-unix) ; zig source is always utf-8
456457
(setq font-lock-defaults '(zig-font-lock-keywords
457458
nil nil nil nil

0 commit comments

Comments
 (0)