Skip to content

emacsfodder/string-inflection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

underscore -> UPCASE -> CamelCase conversion of names

Configuration Example

(require 'string-inflection)
(global-unset-key (kbd "C-q"))
(global-set-key (kbd "C-q C-u") 'string-inflection-cycle)

C-q C-u is the key bindings similar to Vz Editor.

We will change as follows each type C-q C-u Place the cursor in the emacs_lisp.

emacs_lisp => EMACS_LISP => EmacsLisp => emacs_lisp

Function that can be used alone

(string-inflection-underscore-function "EmacsLisp") ; => "emacs_lisp"
(string-inflection-camelize-function "emacs_lisp")  ; => "EmacsLisp"
(string-inflection-upcase-function "emacs_lisp")    ; => "EMACS_LISP"
(string-inflection-camelize-p "EmacsLisp")          ; => t
(string-inflection-camelize-p "emacs_lisp")         ; => nil

About

underscore -> UPCASE -> CamelCase conversion of names

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published