https://github.com/jtkdvlp/web-mode-edit-element
Helper-functions for attribute- and element-handling
https://github.com/jtkdvlp/web-mode-edit-element
emacs html melpa paredit paxedit web-mode xml
Last synced: 3 days ago
JSON representation
Helper-functions for attribute- and element-handling
- Host: GitHub
- URL: https://github.com/jtkdvlp/web-mode-edit-element
- Owner: jtkDvlp
- License: gpl-2.0
- Created: 2016-11-03T22:02:51.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-28T20:46:34.000Z (over 2 years ago)
- Last Synced: 2025-06-14T14:44:11.633Z (4 months ago)
- Topics: emacs, html, melpa, paredit, paxedit, web-mode, xml
- Language: Emacs Lisp
- Homepage:
- Size: 31.3 KB
- Stars: 19
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://img.shields.io/badge/License-GPL%20v2-blue.svg) [](http://melpa.org/#/web-mode-edit-element) [](http://stable.melpa.org/#/web-mode-edit-element)
[](https://www.paypal.com/donate?hosted_button_id=2PDXQMHX56T6U)# web-mode-edit-element
"web-mode-edit-element" is a smart enhancement for the Emacs-Package [web-mode](https://github.com/fxbois/web-mode) inspired by the packages [ParEdit](https://www.emacswiki.org/emacs/ParEdit) and [Paxedit](https://github.com/promethial/paxedit).It provides a few helper-functions for attribute- and element-handling based on the functions given by [web-mode](https://github.com/fxbois/web-mode). Further more it provides functions for slurping, barfing, dissolving, raising ... elements inspired by [ParEdit](https://www.emacswiki.org/emacs/ParEdit) and [Paxedit](https://github.com/promethial/paxedit). Last but not least this package includes a minor mode to provide a keymap with default bindings using commands of [web-mode](https://github.com/fxbois/web-mode) and this package.
## Getting started
### Get it
- Via [](http://melpa.org/#/web-mode-edit-element) or [](http://stable.melpa.org/#/web-mode-edit-element)
- Manually download it and [set up your load path](http://www.emacswiki.org/emacs/InstallingPackages).### Usage
```clojure
(require 'web-mode-edit-element)
(add-hook 'web-mode-hook 'web-mode-edit-element-minor-mode)
```### Keymap
Shortcut | Command
--- | ---
**General** |
`C-(` | web-mode-element-wrap
`M-(` | web-mode-element-rename
`C-M-SPC` | web-mode-element-content-select
**Elements** |
`C-` | web-mode-element-previous
`C-` | web-mode-element-next
`M-` | web-mode-edit-element-elements-contract-over-border
`M-` | web-mode-edit-element-elements-expand-over-border
`C-M-` | web-mode-edit-element-elements-transpose-backward
`C-M-` | web-mode-element-transpose
`C-` | web-mode-element-beginning
`C-` | web-mode-tag-match
`C-S-` | web-mode-element-parent
`C-S-` | web-mode-element-next
`M-` | web-mode-edit-element-elements-dissolve
`M-` | web-mode-edit-element-elements-raise
`C-M-` | web-mode-element-vanish
`C-M-` | web-mode-edit-element-elements-sibling-next-or-parent
`C-k` | web-mode-element-kill
`C-S-k` | web-mode-edit-element-elements-kill-siblings
`M-k` | web-mode-edit-element-elements-kill-siblings-previous
`M-K` | web-mode-edit-element-elements-kill-siblings-next
**Attributes** |
`C-S-` | web-mode-attribute-previous
`C-S-` | web-mode-attribute-next
`C-M-S-` | web-mode-edit-element-attributes-transpose-backward
`C-M-S-` | web-mode-attribute-transpose
`C-M-S-` | web-mode-attribute-beginning
`C-M-S-` | web-mode-edit-element-attributes-end-inside
`C-M-K` | web-mode-attribute-kill## Appendix
I´d be thankful to receive patches, comments and constructive criticism.Hope the package is useful :-)