From f0b4a487530146f99230f4a5ff67e8d56c8f3f80 Mon Sep 17 00:00:00 2001 From: vent Date: Tue, 22 Oct 2024 23:19:00 +0100 Subject: [PATCH] Set compile-command to "zig build" This replaces the default "make -k" command for M-x compile. --- zig-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/zig-mode.el b/zig-mode.el index b9b61e7..30f44d8 100644 --- a/zig-mode.el +++ b/zig-mode.el @@ -460,6 +460,7 @@ This is written mainly to be used as `end-of-defun-function' for Zig." (setq-local indent-tabs-mode nil) ; Zig forbids tab characters. (setq-local syntax-propertize-function 'zig-syntax-propertize) (setq-local imenu-generic-expression zig-imenu-generic-expression) + (setq-local compile-command "zig build") (setq buffer-file-coding-system 'utf-8-unix) ; zig source is always utf-8 (setq font-lock-defaults '(zig-font-lock-keywords nil nil nil nil