Skip to content

Commit

Permalink
Set compile-command to "zig build"
Browse files Browse the repository at this point in the history
This replaces the default "make -k" command for M-x compile.
  • Loading branch information
ve-nt authored and joachimschmidt557 committed Nov 4, 2024
1 parent 42aa16c commit f0b4a48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zig-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0b4a48

Please sign in to comment.