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

Commit 2d7b61f

Browse files
committed
Remove unnecessary :group forms from defcustoms
The default containing group is the one created earlier in the same file, ie. zig-mode, so we just use that here.
1 parent 5ca49c9 commit 2d7b61f

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

zig-mode.el

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,38 +39,32 @@
3939
(defcustom zig-indent-offset 4
4040
"Indent Zig code by this number of spaces."
4141
:type 'integer
42-
:group 'zig-mode
4342
:safe #'integerp)
4443

4544
(defcustom zig-format-on-save t
4645
"Format buffers before saving using zig fmt."
4746
:type 'boolean
48-
:safe #'booleanp
49-
:group 'zig-mode)
47+
:safe #'booleanp)
5048

5149
(defcustom zig-format-show-buffer t
5250
"Show a *zig-fmt* buffer after zig fmt completes with errors"
5351
:type 'boolean
54-
:safe #'booleanp
55-
:group 'zig-mode)
52+
:safe #'booleanp)
5653

5754
(defcustom zig-zig-bin "zig"
5855
"Path to zig executable."
5956
:type 'file
60-
:safe #'stringp
61-
:group 'zig-mode)
57+
:safe #'stringp)
6258

6359
(defcustom zig-run-optimization-mode "Debug"
6460
"Optimization mode to run code with."
6561
:type 'string
66-
:safe #'stringp
67-
:group 'zig-mode)
62+
:safe #'stringp)
6863

6964
(defcustom zig-test-optimization-mode "Debug"
7065
"Optimization mode to run tests with."
7166
:type 'string
72-
:safe #'stringp
73-
:group 'zig-mode)
67+
:safe #'stringp)
7468

7569
;; zig CLI commands
7670

@@ -229,8 +223,7 @@ If given a SOURCE, execute the CMD on it."
229223

230224
(defface zig-multiline-string-face
231225
'((t :inherit font-lock-string-face))
232-
"Face for multiline string literals."
233-
:group 'zig-mode)
226+
"Face for multiline string literals.")
234227

235228
(defvar zig-font-lock-keywords
236229
(append
@@ -491,7 +484,6 @@ This is written mainly to be used as `end-of-defun-function' for Zig."
491484
"A major mode for the Zig programming language.
492485
493486
\\{zig-mode-map}"
494-
:group 'zig-mode
495487
(setq-local comment-start "// ")
496488
(setq-local comment-start-skip "//+ *")
497489
(setq-local comment-end "")

0 commit comments

Comments
 (0)