https://github.com/peterhoeg/openhab-mode
openHAB modes for Emacs
https://github.com/peterhoeg/openhab-mode
hacktoberfest
Last synced: 5 months ago
JSON representation
openHAB modes for Emacs
- Host: GitHub
- URL: https://github.com/peterhoeg/openhab-mode
- Owner: peterhoeg
- License: gpl-3.0
- Created: 2021-10-16T06:53:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-27T15:36:26.000Z (over 1 year ago)
- Last Synced: 2025-08-19T13:42:06.675Z (10 months ago)
- Topics: hacktoberfest
- Language: Emacs Lisp
- Homepage:
- Size: 42 KB
- Stars: 2
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
[[https://melpa.org/#/openhab-mode][https://melpa.org/packages/openhab-mode-badge.svg]]
* openhab-modes
This is a collection of major modes for working with various [[https://openhab.org][openHAB]] files.
The primary objective is to get syntax highlighting and indentation working (both as-you-write and
formatting of the entire buffer) and while *far* from complete, it's absolutely usable for editing
rules files as well as viewing the others.
Modes:
- [[openhab-mode]]
- [[openhab-item-mode]]
- [[openhab-persistence-mode]]
- [[openhab-rule-mode]]
- [[openhab-sitemap-mode]]
- [[openhab-thing-mode]]
** Why is the editing experience so poor?
Because I don't actually *edit* any of these files as they are all generated - I only view them.
That being said, if someone would like to add better support for editing (indentation comes to
mind), then please do open a PR!
** openhab-mode
Base mode from which the others inherit.
** openhab-item-mode
Support for =.items= files.
** openhab-persistence-mode
Support for =.persistence= files.
** openhab-rule-mode
=rules= files are based on [[https://www.eclipse.org/xtend/][Xtend]], so they are technically a real programming languages. I don't myself write rules using the openHAB DSL as openHAB now supports jruby rules.
** openhab-sitemap-mode
Support for =.sitemap= files.
** openhab-thing-mode
Support for =.things= files.