Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wbolster/emacs-xml-format
emacs package to reformat xml using xmllint
https://github.com/wbolster/emacs-xml-format
Last synced: 6 days ago
JSON representation
emacs package to reformat xml using xmllint
- Host: GitHub
- URL: https://github.com/wbolster/emacs-xml-format
- Owner: wbolster
- License: bsd-3-clause
- Created: 2019-10-11T11:29:40.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T13:19:35.000Z (almost 3 years ago)
- Last Synced: 2024-12-27T09:13:11.279Z (16 days ago)
- Language: Emacs Lisp
- Homepage:
- Size: 1.95 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
xml-format.el
=============This is an Emacs package to make it easy to [reformat](https://github.com/purcell/reformatter.el) XML files using the [xmllint](http://xmlsoft.org/xmllint.html) utility. `xmllint` is is part of [libxml2](http://xmlsoft.org/), and available from most software repositories, e.g. `apt install libxml2-utils` on Debian/Ubuntu.
Installation
------------Install the [xml-format Melpa package](https://melpa.org/#/xml-format) using `M-x package-install`, or via [use-package](https://github.com/jwiegley/use-package):
``` elisp
(use-package xml-format
:demand t
:after nxml-mode)
```Usage
-----Use one of these commands via `M-x` or bind them to a key:
- `xml-format-on-save-mode`
Automatically reformat the buffer on save.
- `xml-format-buffer`
Reformat the current buffer.
- `xml-format-region`
Reformat the current region.
Configuration
-------------This package deliberately has minimal configuration. Use `M-x customize-group RET xml-format` or change these variables in your `init.el`:
- `xml-format-xmllint-executable`
- `xml-format-xmllint-args`License
-------BSD-3-clause. Copyright © 2019 wouter bolsterlee.
Credits
-------wouter bolsterlee. wbolster.
https://github.com/wbolster on github. star my repos. fork them. and so on.
https://twitter.com/wbolster on twitter. follow me. or say hi.