branch: elpa/zig-mode
commit 9dc36e111774e69a20682597fca2f84f968ce449
Author: Marcio Giaxa <[email protected]>
Commit: Marcio Giaxa <[email protected]>
move defgroup and defcustom to the beginning of the code
It's better to have all custom definitions in the beginning of the
code
---
zig-mode.el | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/zig-mode.el b/zig-mode.el
index e2932cd..d0f8500 100644
--- a/zig-mode.el
+++ b/zig-mode.el
@@ -24,6 +24,16 @@
;;; Code:
+(defgroup zig-mode nil
+ "Support for Zig code."
+ :link '(url-link "https://ziglang.org/")
+ :group 'languages)
+
+(defcustom zig-indent-offset 4
+ "Indent Zig code by this number of spaces."
+ :type 'integer
+ :group 'zig-mode
+ :safe #'integerp)
(defun zig-re-word (inner)
"Construct a regular expression for the word INNER."
(concat "\\<" inner "\\>"))
@@ -114,16 +124,6 @@
(defconst zig-electric-indent-chars
'( ?\; ?, ?) ?] ?} ))
-(defgroup zig-mode nil
- "Support for Zig code."
- :link '(url-link "https://ziglang.org/")
- :group 'languages)
-
-(defcustom zig-indent-offset 4
- "Indent Zig code by this number of spaces."
- :type 'integer
- :group 'zig-mode
- :safe #'integerp)
(defface zig-multiline-string-face
'((t :inherit font-lock-string-face))