underscore -> UPCASE -> Camelize conversion of variable name
Emacs Lisp
Switch branches/tags
Nothing to show
Pull request Compare This branch is 34 commits behind akicho8:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
README.org
string-inflection.el

README.org

underscore -> UPCASE -> Camelize conversion of variable name

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