Skip to content

Commit d61ed23

Browse files
committed
Fix elisp warnings
1 parent 4bd00b4 commit d61ed23

7 files changed

+24
-8
lines changed

lsp-dart-closing-labels.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ The hook will receive the notification data as argument."
6868

6969
(define-minor-mode lsp-dart-closing-labels-mode
7070
"Mode for displaying flutter closing labels on the end of methods/contructors."
71-
nil nil nil
71+
:global nil
72+
:init-value nil
73+
:lighter nil
7274
(cond
7375
(lsp-dart-closing-labels-mode
7476
(add-hook 'lsp-dart-closing-labels-arrived-hook #'lsp-dart--closing-labels-check nil t))

lsp-dart-code-lens.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ RANGE is the overlay range to build."
183183

184184
(define-minor-mode lsp-dart-main-code-lens-mode
185185
"Mode for displaying code lens on main methods."
186-
nil nil nil
186+
:global nil
187+
:init-value nil
188+
:lighter nil
187189
(cond
188190
(lsp-dart-main-code-lens-mode
189191
(add-hook 'lsp-dart-outline-arrived-hook #'lsp-dart--main-code-lens-check nil t))

lsp-dart-dap.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,9 @@ Call CALLBACK when the device is chosen and started successfully."
396396

397397
(define-minor-mode lsp-dart-dap-mode
398398
"Mode for when debugging Dart/Flutter code."
399-
nil nil nil
399+
:global nil
400+
:init-value nil
401+
:lighter nil
400402
(cond
401403
(lsp-dart-dap-mode
402404
(add-hook 'after-save-hook #'lsp-dart-dap--on-save))

lsp-dart-flutter-fringe-colors.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@
9595

9696
(define-minor-mode lsp-dart-flutter-fringe-colors-mode
9797
"Mode for displaying colors in fringe."
98-
nil nil nil
98+
:global nil
99+
:init-value nil
100+
:lighter nil
99101
(cond
100102
(lsp-dart-flutter-fringe-colors-mode
101103
(add-hook 'lsp-on-change-hook (-partial #'lsp-dart-flutter-fringe--update-colors (current-buffer)) nil t))

lsp-dart-flutter-widget-guide.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ ANCHOR is the anchor point of the widget guide at LINE."
161161

162162
(define-minor-mode lsp-dart-flutter-widget-guides-mode
163163
"Mode for displaying flutter widget guide lines."
164-
nil nil nil
164+
:global nil
165+
:init-value nil
166+
:lighter nil
165167
(cond
166168
(lsp-dart-flutter-widget-guides-mode
167169
(add-hook 'lsp-dart-flutter-outline-arrived-hook #'lsp-dart-flutter-widget-guide-check nil t))

lsp-dart-outline.el

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ It updates the Flutter outline view if it already exists."
254254

255255
(define-minor-mode lsp-dart-outline-mode
256256
"Mode for updating outline."
257-
nil nil nil
257+
:global nil
258+
:init-value nil
259+
:lighter nil
258260
(cond
259261
(lsp-dart-outline-mode
260262
(add-hook 'lsp-dart-outline-arrived-hook #'lsp-dart--outline-check nil t))
@@ -263,7 +265,9 @@ It updates the Flutter outline view if it already exists."
263265

264266
(define-minor-mode lsp-dart-flutter-outline-mode
265267
"Mode for updating flutter outline."
266-
nil nil nil
268+
:global nil
269+
:init-value nil
270+
:lighter nil
267271
(cond
268272
(lsp-dart-flutter-outline-mode
269273
(add-hook 'lsp-dart-flutter-outline-arrived-hook #'lsp-dart--flutter-outline-check nil t))

lsp-dart-test-support.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ NAMES arg is optional and are the group of tests representing a test name."
363363

364364
(define-minor-mode lsp-dart-test-mode
365365
"Mode for saving tests info for runs."
366-
nil nil nil
366+
:global nil
367+
:init-value nil
368+
:lighter nil
367369
(cond
368370
(lsp-dart-test-mode
369371
(add-hook 'lsp-dart-outline-arrived-hook #'lsp-dart-test--check-tests nil t))

0 commit comments

Comments
 (0)