ziglang / zig-mode

Zig mode for Emacs
GNU General Public License v3.0
163 stars 54 forks source link

Adds few Zig CLI commands #20

Closed mgxm closed 4 years ago

mgxm commented 4 years ago

Zig formatter

By default the value of zig-format-on-save is set to t, meaning that the code is automatically formatted before saves, to disable it, you can set it to nil. Besides that, you can toggle the behavior on certain buffers using M-x zig-toggle-format-on-save.

adds defcustom:

adds defun:

Interactive commands

Default keybindings

C-c C-b runs zig-build C-c C-f runs zig-format-buffer C-c C-r runs zig-run C-c C-t runs zig-test-buffer

Closes: #12

AndreaOrru commented 4 years ago

Hi, sorry for the late answer. I like this - as soon as I get a chance to test and review it, I'll consider it for merging.

AndreaOrru commented 4 years ago

Looks good! Thanks for the contribution! Again sorry for the late answer, I've been off the grid for a while.