emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/zig-mode 9dc36e1 046/104: move defgroup and defcustom to t


From: ELPA Syncer
Subject: [nongnu] elpa/zig-mode 9dc36e1 046/104: move defgroup and defcustom to the beginning of the code
Date: Sun, 29 Aug 2021 11:37:00 -0400 (EDT)

branch: elpa/zig-mode
commit 9dc36e111774e69a20682597fca2f84f968ce449
Author: Marcio Giaxa <i@mgxm.me>
Commit: Marcio Giaxa <i@mgxm.me>

    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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]