format-region.el/README.md

51 lines
662 B
Markdown
Raw Normal View History

2023-06-03 15:49:03 +02:00
# format-region.el
2023-06-04 15:34:44 +02:00
Transform region in different formats in Emacs: camelCase, kebab-case or lisp-case, PascalCase or snake_case.
2023-06-03 15:49:03 +02:00
![format-region](demo.gif)
## Usage
Select region and call:
### camelCase
```
M-x format-to-camel-case-region
```
2023-06-03 16:15:53 +02:00
### kebab-case o lisp-case
2023-06-03 15:49:03 +02:00
```
2023-06-03 16:15:53 +02:00
M-x format-to-kebab-case-region
2023-06-03 15:49:03 +02:00
```
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)
```