https://github.com/smoeding/emacs-augeas-mode
Emacs major mode for Augeas
https://github.com/smoeding/emacs-augeas-mode
Last synced: 4 months ago
JSON representation
Emacs major mode for Augeas
- Host: GitHub
- URL: https://github.com/smoeding/emacs-augeas-mode
- Owner: smoeding
- License: gpl-3.0
- Created: 2015-01-13T15:47:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T17:29:10.000Z (over 9 years ago)
- Last Synced: 2025-03-06T23:25:14.022Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Emacs major mode for Augeas
This is a small hack to provide an Emacs major mode to write [Augeas](http://augeas.net/) code. I'm using this mode to write my own Augeas lenses to be used in Puppet.
The mode is still at an early stage.
## Features
Currently the following features are available:
- Font lock for Augeas code
- `compile` calls augparse to execute an Augeas module
## Installation
Put the file `augeas-mode.el` somewhere in your `load-path`. Also add the following code to your init file (e.g. `~/.emacs.d/init.el`):
```elisp
(autoload 'augeas-mode "augeas-mode" "Major mode for editing augeas files." t)
(add-to-list 'auto-mode-alist '("\\.aug\\'" . augeas-mode))
```
This will switch to `augeas-mode` for Augeas files.
## License
This program 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.
This program 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.
You should have received a copy of the GNU General Public License
along with this program. If not, see .