{"id":14965978,"url":"https://github.com/raku/raku-mode","last_synced_at":"2025-10-19T09:30:28.963Z","repository":{"id":43872685,"uuid":"77402536","full_name":"Raku/raku-mode","owner":"Raku","description":"Emacs major mode for Raku","archived":false,"fork":false,"pushed_at":"2024-04-29T10:07:47.000Z","size":208,"stargazers_count":61,"open_issues_count":26,"forks_count":19,"subscribers_count":148,"default_branch":"master","last_synced_at":"2024-10-29T14:35:31.361Z","etag":null,"topics":["raku"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raku.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-26T19:21:01.000Z","updated_at":"2024-09-29T19:40:15.000Z","dependencies_parsed_at":"2024-08-03T03:13:38.140Z","dependency_job_id":null,"html_url":"https://github.com/Raku/raku-mode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raku%2Fraku-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raku%2Fraku-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raku%2Fraku-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raku%2Fraku-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raku","download_url":"https://codeload.github.com/Raku/raku-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237093028,"owners_count":19254331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["raku"],"created_at":"2024-09-24T13:35:38.699Z","updated_at":"2025-10-19T09:30:23.654Z","avatar_url":"https://github.com/Raku.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raku Mode\n\n[![License GPL 3][badge-license]][copying]\n[![MELPA Status](http://melpa.org/packages/perl6-mode-badge.svg)](http://melpa.org/#/perl6-mode)\n[![travis][badge-travis]][travis]\n\nRaku mode lets you edit Raku code with [GNU Emacs][] 24.\n\nThis mode needs GNU Emacs 24.4.\n\n## Features\n\n* Basic syntax highlighting\n* Basic indentation\n* Identifier index menu (variables, subs, classes, etc.)\n* REPL interaction\n\n#### Planned\n\n* Complete syntax highlighting\n* Better indentation support (uses Emacs SMIE grammar, see the Emacs manual)\n* Autocompletion\n* Possible integration with Raku language server\n* Help system\n* ETags support\n* `find-file-at-point` for module names\n* Electricity (`electric-pair-mode` needs some context-sensitive help)\n* Unicode character map\n* Better HEREDOC support (currently not very stable)\n\n#### Not planned\n\n* Syntax checking (use [flycheck-raku][])\n\n## Installation\n\nWith [`use-package`][use-package] in your init file:\n\n```el\n(use-package raku-mode\n  :ensure t\n  :defer t)\n```\n\nOr in your [`Cask`][cask] file:\n\n```el\n(source melpa)\n\n(depends-on \"raku-mode\")\n```\nOr manually from [MELPA][] with \u003ckbd\u003eM-x package-refresh-contents\u003c/kbd\u003e\nand \u003ckbd\u003eM-x package-install RET raku-mode\u003c/kbd\u003e.\n\n## Usage\n\nJust visit Raku files.\n\nThe major mode will be autoloaded whenever a Raku file is visited.\nThis includes any file with `raku` in the shebang, as well as any file\nwith a `.p6`, `.pm6`, or `.pl6` extension. It also applies to any `.pm`,\n`.pl`, and `.t` files whose first line of code looks like Raku.\n\nStart the REPL with \u003ckbd\u003eM-x run-raku RET\u003c/kbd\u003e. The following\nkeybindings are available to interact with the REPL:\n\n* \u003ckbd\u003eC-c C-l\u003c/kbd\u003e: Send the current **l**ine to the REPL\n* \u003ckbd\u003eC-c C-r\u003c/kbd\u003e: Send the selected **r**egion to the REPL\n* \u003ckbd\u003eC-c C-b\u003c/kbd\u003e: Send the whole **b**uffer to the REPL\n\nThe REPL will start if needed with this keybindings.\n\nUse \u003ckbd\u003eM-x customize-group RET raku\u003c/kbd\u003e to customize Raku Mode.\n\n## Template skeletons\n\nIncluded are two skeletons (file templates) that can be auto-inserted with\nauto-insert-mode:\n\n* `raku-script-skeleton`, and\n* `raku-module-skeleton`.\n\nTo use them, add them to your auto-insert-alist (`M-x customize-option RET\nauto-insert-alist`) with the conditions of your choice.\n\nTo insert them when you create a new file with the `.raku` or `.rakumod`\nextension, use the following matching regular expressions:\n\n* For `raku-script-skeleton`: `\\.raku\\'`.\n* For `raku-module-skeleton`: `\\.rakumod\\`.\n\nAlternatively you can add them in your .emacs using `define-auto-insert`:\n\n```Emacs Lisp\n(define-auto-insert\n\t'(\"\\\\.rakumod\\\\'\" . \"Raku module skeleton\")\n\t'raku-module-skeleton)\n(define-auto-insert\n\t'(\"\\\\.raku\\\\'\" . \"Raku script skeleton\")\n\t'raku-script-skeleton)\n```\n\nThe full path to the Raku executable for the shebang, as well as the default\nauth information for a module can be defined in the Raku Skeleton customization\ngroup, `M-x customize-group RET raku-skeleton`.\n\n## Contribute\n\nPull requests are welcome.\n\nYou might want to install [`cask`][cask] so you can run the test suite\n(with `make test`).\n\n## Original Code\n\nThe original version of this code can be found at\n[https://github.com/hinrik/perl6-mode](https://github.com/hinrik/perl6-mode)\n\n## License\n\nRaku Mode is free software: you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published by the\nFree Software Foundation, either version 3 of the License, or (at your\noption) any later version.\n\nRaku Mode is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General\nPublic License for more details.\n\nSee [`COPYING`][copying] for the complete license.\n\n[badge-license]: https://img.shields.io/badge/license-GPL_3-green.svg\n[COPYING]: https://github.com/hinrik/perl6-mode/blob/master/COPYING\n[travis]: https://travis-ci.org/hinrik/perl6-mode\n[badge-travis]: https://travis-ci.org/hinrik/perl6-mode.svg?branch=master\n[GNU Emacs]: https://www.gnu.org/software/emacs/\n[flycheck-raku]: https://github.com/Raku/flycheck-raku\n[MELPA]: http://melpa.milkbox.net/\n[use-package]: https://github.com/jwiegley/use-package\n[Cask]: http://cask.github.io/\n[Issue tracker]: https://github.com/hinrik/perl6-mode/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku%2Fraku-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraku%2Fraku-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku%2Fraku-mode/lists"}