branch: elpa/zig-mode commit a4f1e118a9303a06342d4849e55c4897675986e9 Author: Andrea Orru <and...@orru.io> Commit: Andrea Orru <and...@orru.io>
Just disable syntactic indentation (it's broken) --- zig-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zig-mode.el b/zig-mode.el index ddb14f6..2b63514 100644 --- a/zig-mode.el +++ b/zig-mode.el @@ -1,6 +1,6 @@ ;;; zig-mode.el --- A major mode for the Zig programming language -*- lexical-binding: t -*- -;; Version: 0.0.4 +;; Version: 0.0.5 ;; Author: Andrea Orru <andreaorru1...@gmail.com>, Andrew Kelley <superjo...@gmail.com> ;; Keywords: zig, languages ;; Package-Requires: ((emacs "24")) @@ -142,6 +142,7 @@ (define-derived-mode zig-mode c-mode "Zig" "A major mode for the zig programming language." (set (make-local-variable 'c-basic-offset) 4) + (set (make-local-variable 'c-syntactic-indentation) nil) (setq font-lock-defaults '(zig-font-lock-keywords))) ;;;###autoload