Convert plain text into different formats in Emacs: camelCase, kebab-case or lisp-case, PascalCase or snake_case.
Go to file
Andros Fenollosa cca72bb402 Update README
2023-06-04 15:34:55 +02:00
demo.gif Add README and optimize 2023-06-03 15:49:03 +02:00
format-region.el Update commentary 2023-06-04 15:33:11 +02:00
LICENSE Create LICENSE 2023-06-04 15:33:51 +02:00
README.md Update README 2023-06-04 15:34:55 +02:00

format-region.el

Transform region in different formats in Emacs: camelCase, kebab-case or lisp-case, PascalCase or snake_case.

format-region

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:

(add-to-list 'load-path "/path/to/format-region.el")
(require 'format-region)