662 B
662 B
format-region.el
Transform region in different formats in Emacs: camelCase, kebab-case or lisp-case, PascalCase or snake_case.
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
-
Download
format-region.el
file. -
Add this to your
~/.emacs
file:
(add-to-list 'load-path "/path/to/format-region.el")
(require 'format-region)