Major mode for editing Pkl files.
Below are instructions for use-package
. If you don't use use-package
, you can
just add the pkl-mode.el
file somewhere in your load-path
and require it.
- Clone the repository to somewhere on your system.
- Add the following to your init file:
(use-package pkl-mode
:load-path "/path/to/pkl-mode"
;; Add your minor modes to the hook if you want them enabled:
:hook (pkl-mode . rainbow-delimiters-mode)
;; Check the `pkl' group in Customize for what you can put here.
:custom
(pkl-enable-copilot t))
- Restart Emacs or evaluate the form.
That's it. Happy hacking!
(Coming soon to MELPA, hopefully.)
- Syntax highlighting
- Indentation
- Commenting
- Integration with copilot.el
Planned features:
- Flycheck integration (via
pkl eval
) lsp-mode
andeglot
integration (once Pkl has a language server)
Contributions are welcome! Feel free to open an issue or a pull request.
Copyright (C) 2024 sin-ack. Distributed under the GNU General Public License, version 3.