[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))
- [nongnu] elpa/zig-mode ef59edd 042/104: Prefer Homepage to URL, (continued)
- [nongnu] elpa/zig-mode ef59edd 042/104: Prefer Homepage to URL, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 77202ac 044/104: update syntax keywords, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode d885809 068/104: Merge pull request #30 from joachimschmidt557/var-anytype, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode a0dc7dc 063/104: Merge pull request #27 from joachimschmidt557/add-nosuspend, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 89385d7 088/104: Make read-only-mode deactivation/activation explicit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 3e3c0d5 102/104: Fix font-lock of parameters with optional, pointer or array types, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 8e0e610 086/104: Use (read-only-mode) instead of (toggle-read-only), ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 12fe3c9 001/104: Initial commit, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 7c6323c 021/104: orelse, f16, comptime_int, comptime_float, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 3778fb5 030/104: Make indentation more nuanced (and add more tests for it), ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 9dc36e1 046/104: move defgroup and defcustom to the beginning of the code,
ELPA Syncer <=
- [nongnu] elpa/zig-mode 4eafa60 050/104: colorize compilation buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 107a67b 060/104: Runs `revert-buffer` after formatting on save., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode b4ae21a 061/104: Merge pull request #26 from Saikyun/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 6309295 069/104: Hide the *zig-fmt* window when formatting succeeds again, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 1e75c04 100/104: Remove irrelevant comment, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 0babe7e 103/104: Merge pull request #59 from eric-p-hutchins/params-with-optionals-pointers-and-arrays-oh-my, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 2d0eb23 097/104: Merge pull request #55 from arqv/optim-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode 232bfff 010/104: Merge pull request #2 from syohex/fix-package, ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode fead48b 002/104: Initial revision., ELPA Syncer, 2021/08/29
- [nongnu] elpa/zig-mode c961a6d 005/104: noreturn., ELPA Syncer, 2021/08/29