Emacs major mode for Perl 6
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
CHANGELOG.md
COPYING
Cask
Makefile
README.md
README.tmp-imenu-notes
nqp-mode.el
perl6-detect.el
perl6-font-lock.el
perl6-imenu.el
perl6-indent.el
perl6-mode.el
perl6-unicode-menu.el

README.md

Perl 6 Mode

License GPL 3 MELPA Status travis

Perl 6 mode lets you edit Perl 6 code with GNU Emacs 24.

This mode needs GNU Emacs 24.4.

Features

  • Basic syntax highlighting
  • Basic indentation
  • Identifier index menu (variables, subs, classes, etc.)

Planned

  • Complete syntax highlighting
  • Better indentation support (uses Emacs SMIE grammar, see the Emacs manual)
  • Help system
  • REPL interaction
  • ETags support
  • find-file-at-point for module names
  • Electricity (electric-pair-mode needs some context-sensitive help)
  • Unicode character map

Not planned

Installation

With use-package in your init file:

(use-package perl6-mode
  :ensure t
  :defer t)

Or in your Cask file:

(source melpa)

(depends-on "perl6-mode")

Or manually from MELPA with M-x package-refresh-contents and M-x package-install RET perl6-mode.

Usage

Just visit Perl 6 files.

The major mode will be autoloaded whenever a Perl 6 file is visited. This includes any file with perl6 in the shebang, as well as any file with a .p6, .pm6, or .pl6 extension. It also applies to any .pm, .pl, and .t files whose first line of code looks like Perl 6.

Use M-x customize-group RET perl6 to customize Perl 6 Mode.

Contribute

Pull requests are welcome.

You might want to install cask so you can run the test suite (with make test).

Original Code

The original version of this code can be found at https://github.com/hinrik/perl6-mode

License

Perl 6 Mode 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.

Perl 6 Mode 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.

See COPYING for the complete license.