[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/raku-mode 27b90214e3 211/253: Auto insert skeletons.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/raku-mode 27b90214e3 211/253: Auto insert skeletons. |
Date: |
Sat, 29 Jan 2022 08:28:58 -0500 (EST) |
branch: elpa/raku-mode
commit 27b90214e3eaebbc091f70633949cdbed0b6f94c
Author: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Commit: Tim Van den Langenbergh <tmt_vdl@gmx.com>
Auto insert skeletons.
Add some skeletons that can be used with auto-insert mode.
---
raku-skeletons.el | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/raku-skeletons.el b/raku-skeletons.el
new file mode 100644
index 0000000000..e339a59225
--- /dev/null
+++ b/raku-skeletons.el
@@ -0,0 +1,97 @@
+;;; raku-skeletons.el --- Skeletons for Raku file auto insertion. -*-
lexical-binding: t; -*-
+
+;; Copyright (C) 2020 Tim Van den Langenbergh
+
+;; Author: Tim Van den Langenbergh <tmt_vdl@gmx.com>
+;; URL: https://github.com/raku/raku-mode
+;; Keywords: languages, convenience, files
+;; Version: 0.1
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Some skeletons for auto-insertion in Raku files.
+
+;;; Code:
+(require 'raku-mode)
+
+(defgroup raku-skeletons nil
+ "Skeletons for Raku files."
+ :prefix "raku-skeleton-"
+ :group 'raku)
+
+(defcustom full-raku-path "/usr/bin/raku"
+ "Path to the Raku executable."
+ :type 'string
+ :group 'raku-skeletons)
+
+(defcustom auth-id user-login-name
+ "Author information."
+ :type 'string
+ :group 'raku-skeletons)
+
+(define-skeleton raku-script-skeleton
+ "Skeleton for Raku scripts."
+ nil
+ "#!" (progn full-raku-path) \n
+ "use v6;" \n
+ \n
+ "sub MAIN () {" \n
+ > _ \n
+ "}" \n)
+
+(defvar module-name "Foo"
+ "Variable for holding a new module name.")
+
+(define-skeleton raku-module-skeleton
+ "Skeleton for Raku modules."
+ nil
+ "use v6;" \n
+ \n
+ "unit module "
+ (let ((given-name (skeleton-read "Module name: " module-name)))
+ (setq module-name given-name)
+ given-name)
+ ":ver<0.0.1>:auth<" (progn auth-id) ">;" \n
+ \n
+ _ \n
+ \n
+ "=begin pod" \n
+ \n
+ "=head1 NAME" \n
+ \n
+ (progn module-name) " - " (skeleton-read "Short description: ") \n
+ \n
+ "=head1 SYNOPSIS" \n
+ \n
+ "\tuse " (progn module-name) ";\n"
+ \n
+ "=head1 DESCRIPTION" \n
+ \n
+ (progn module-name) " is..." \n
+ \n
+ "=head1 AUTHOR" \n
+ \n
+ (progn auth-id) \n
+ \n
+ "=head1 COPYRIGHT AND LICENSE" \n
+ \n
+ "This library is free software; "
+ "you can redistribute it and/or modify it under the Artistic License 2.0."
+ "\n\n"
+ "=end pod" \n)
+
+(provide 'raku-skeletons)
+;;; raku-skeletons.el ends here
- [nongnu] elpa/raku-mode c5f3d072e5 120/253: Don't highlight string delimiters inside comments, (continued)
- [nongnu] elpa/raku-mode c5f3d072e5 120/253: Don't highlight string delimiters inside comments, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 19f4243934 125/253: Remove unnecessary check for syntactic context, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6c97f87fd8 135/253: Correctly highlight ::*Foo::Bar, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 309720c98a 148/253: correct indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode c0b40f2ad5 140/253: Correctly highlight custom sub/grammar/etc names that clash with keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 89d6145859 149/253: use proper name for a multi sub or method, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a594f53e09 141/253: Highlight with/orwith/without, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode a0cd586520 170/253: Following this advice http://stackoverflow.com/questions/26108655/error-updating-emacs-packages-failed-to-download-gnu-archive, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 4a018be623 172/253: Adds BagHash to check again, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 992d8af9de 164/253: add test for private methods, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 27b90214e3 211/253: Auto insert skeletons.,
ELPA Syncer <=
- [nongnu] elpa/raku-mode 04f458529e 206/253: Rename perl6 -> raku in test files, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode ed816f0ce3 214/253: Add a new item, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 0968a528bb 216/253: Fix wrong slashes., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 21af6e8398 224/253: Add comment-style highlighting to POD., ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 9fa9e3968e 091/253: pcase is more straightforward than let+cond here, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode aa5078f9cc 112/253: Mention test suite in README.md, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 299099e246 102/253: Simplify variable fontification, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 8ecc3daa40 113/253: Expand comment, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 6d4ef1743a 118/253: More robust comment highlighting, ELPA Syncer, 2022/01/29
- [nongnu] elpa/raku-mode 07b36e8506 114/253: Amend comment about magic-mode-alist a bit, ELPA Syncer, 2022/01/29