Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zonuexe/region-convert.el

Convert string in region by Lisp function
https://github.com/zonuexe/region-convert.el

Last synced: about 2 months ago
JSON representation

Convert string in region by Lisp function

Awesome Lists containing this project

README

        

* Region Convert (=region-convert.el=)
#+BEGIN_HTML
MELPA: region-convert
MELPA stable: region-convert
#+END_HTML
[[file:demo-region-convert.gif]]
** Interactive

1. Select text region (mark region)
2. =M-x region-convert= (or press binding key)
3. Input function name (completing read)

*** Key binding

#+BEGIN_SRC emacs-lisp
(global-set-key (kbd "C-c r") 'region-convert)
#+END_SRC

** Use from Lisp

#+BEGIN_SRC emacs-lisp
(region-convert 5 22 'upcase)
#+END_SRC