https://github.com/sin-ack/pkl-mode
Emacs major mode for editing Pkl files
https://github.com/sin-ack/pkl-mode
emacs emacs-package pkl pkl-lang
Last synced: 5 months ago
JSON representation
Emacs major mode for editing Pkl files
- Host: GitHub
- URL: https://github.com/sin-ack/pkl-mode
- Owner: sin-ack
- License: gpl-3.0
- Created: 2024-04-21T02:09:03.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T15:32:38.000Z (about 2 years ago)
- Last Synced: 2025-11-16T03:29:23.844Z (7 months ago)
- Topics: emacs, emacs-package, pkl, pkl-lang
- Language: Emacs Lisp
- Homepage: https://pkl-lang.org/
- Size: 121 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `pkl-mode`
Major mode for editing [Pkl](https://pkl-lang.org/) files.

## Installation
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.
1. Clone the repository to somewhere on your system.
2. Add the following to your init file:
```elisp
(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))
```
3. Restart Emacs or evaluate the form.
That's it. Happy hacking!
(Coming soon to MELPA, hopefully.)
## Features
- Syntax highlighting
- Indentation
- Commenting
- Integration with [copilot.el](https://github.com/emacs-copilot/copilot.el)
Planned features:
- Flycheck integration (via `pkl eval`)
- `lsp-mode` and `eglot` integration (once Pkl has a language server)
## Contributing
Contributions are welcome! Feel free to open an issue or a pull request.
## License
Copyright (C) 2024 sin-ack. Distributed under the GNU General Public License, version 3.