51 lines
662 B
Markdown
51 lines
662 B
Markdown
# format-region.el
|
|
|
|
Transform region in different formats in Emacs: camelCase, kebab-case or lisp-case, PascalCase or snake_case.
|
|
|
|
![format-region](demo.gif)
|
|
|
|
## Usage
|
|
|
|
Select region and call:
|
|
|
|
### camelCase
|
|
|
|
```
|
|
M-x format-to-camel-case-region
|
|
```
|
|
|
|
### kebab-case o lisp-case
|
|
|
|
```
|
|
M-x format-to-kebab-case-region
|
|
```
|
|
|
|
or
|
|
|
|
```
|
|
M-x format-to-lisp-case-region
|
|
```
|
|
|
|
### PascalCase
|
|
|
|
```
|
|
M-x format-to-pascal-case-region
|
|
```
|
|
|
|
### snake_case
|
|
|
|
```
|
|
M-x format-to-snake-case-region
|
|
```
|
|
|
|
## Installation
|
|
|
|
1. Download `format-region.el` file.
|
|
|
|
2. Add this to your `~/.emacs` file:
|
|
|
|
```elisp
|
|
(add-to-list 'load-path "/path/to/format-region.el")
|
|
(require 'format-region)
|
|
```
|