Skip to content

Commit c0aeee3

Browse files
committed
doc/mod/notification-matrix: describe how to declare functions...
... to use them in own scripts.
1 parent 8284035 commit c0aeee3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

doc/mod/notification-matrix.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ Usage and invocation
9090
There's nothing special to do. Every script or function sending a notification
9191
will now send it to your Matrix account.
9292

93-
But of course you can send notifications directly or use a function in your
94-
own scripts. Give it a try:
93+
But of course you can use the function to send notifications directly. Give
94+
it a try:
9595

9696
$SendMatrix "Subject..." "Body..."
9797

@@ -100,6 +100,12 @@ methods:
100100

101101
$SendNotification "Subject..." "Body..."
102102

103+
To use the functions in your own scripts you have to declare them first.
104+
Place this before you call them:
105+
106+
:global SendMatrix;
107+
:global SendNotification;
108+
103109
See also
104110
--------
105111

0 commit comments

Comments
 (0)