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

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

[nongnu] elpa/raku-mode 26fc7115b5 215/253: Add information about the au


From: ELPA Syncer
Subject: [nongnu] elpa/raku-mode 26fc7115b5 215/253: Add information about the auto-insert skeletons to the README.
Date: Sat, 29 Jan 2022 08:29:00 -0500 (EST)

branch: elpa/raku-mode
commit 26fc7115b5d71ea3c70156f7bba4d0f150aba88a
Author: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Commit: Tim Van den Langenbergh <tmt_vdl@gmx.com>

    Add information about the auto-insert skeletons to the README.
---
 README.md | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/README.md b/README.md
index ba1946c083..9fdc29c9a4 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,38 @@ The REPL will start if needed with this keybindings.
 
 Use <kbd>M-x customize-group RET raku</kbd> to customize Raku Mode.
 
+## Template skeletons
+
+Included are two skeletons (file templates) that can be auto-inserted with
+auto-insert-mode:
+
+* `raku-script-skeleton`, and
+* `raku-module-skeleton`.
+
+To use them, add them to your auto-insert-alist (`M-x customize-option RET
+auto-insert-alist`) with the conditions of your choice.
+
+To insert them when you create a new file with the `.raku` or `.rakumod`
+extension, use the following matching regular expressions:
+
+* For `raku-script-skeleton`: `/.raku/'`.
+* For `raku-module-skeleton`: `/.rakumod/`.
+
+Alternatively you can add them in your .emacs using `define-auto-insert`:
+
+```Emacs Lisp
+(define-auto-insert
+       '("\\.rakumod\\'" . "Raku module skeleton")
+       'raku-module-skeleton)
+(define-auto-insert
+       '("\\.raku\\'" . "Raku script skeleton")
+       'raku-script-skeleton)
+```
+
+The full path to the Raku executable for the shebang, as well as the default
+auth information for a module can be defined in the Raku Skeleton customization
+group, `M-x customize-group RET raku-skeleton`.
+
 ## Contribute
 
 Pull requests are welcome.



reply via email to

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