format-region.el/README.md

50 lines
654 B
Markdown
Raw Permalink 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
```
2023-06-18 20:38:08 +02:00
## Install
2023-06-03 15:49:03 +02:00
2023-06-18 20:38:08 +02:00
Add in your `init.el`.
2023-06-03 15:49:03 +02:00
```elisp
2023-06-18 20:38:08 +02:00
(use-package format-region
:straight (:host github :repo "tanrax/format-region.el" :files ("format-region.el"))
:ensure t)
2023-06-03 15:49:03 +02:00
```