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

Commit f0b4a48

Browse files
ve-ntjoachimschmidt557
authored andcommitted
Set compile-command to "zig build"
This replaces the default "make -k" command for M-x compile.
1 parent 42aa16c commit f0b4a48

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
@@ -460,6 +460,7 @@ This is written mainly to be used as `end-of-defun-function' for Zig."
460460
(setq-local indent-tabs-mode nil) ; Zig forbids tab characters.
461461
(setq-local syntax-propertize-function 'zig-syntax-propertize)
462462
(setq-local imenu-generic-expression zig-imenu-generic-expression)
463+
(setq-local compile-command "zig build")
463464
(setq buffer-file-coding-system 'utf-8-unix) ; zig source is always utf-8
464465
(setq font-lock-defaults '(zig-font-lock-keywords
465466
nil nil nil nil

0 commit comments

Comments
 (0)