Difference between revisions of "Subword-mode"
(added a basic page on subword-mode)
(→See Also: string-inflection package, to toggle name styles)
|Line 60:||Line 60:|
Latest revision as of 05:04, 6 May 2014
Subword-mode is a buffer-local minor mode. Enabling it remaps word-based editing commands to subword-based commands that handle symbols with mixed uppercase and lowercase letters, e.g. "GtkWidget", "EmacsFrameClass", "NSGraphicsContext".
Here we call these mixed case symbols `nomenclatures'. Each capitalized (or completely uppercase) part of a nomenclature is called a `subword'. Here are some examples:
Nomenclature Subwords =========================================================== GtkWindow => "Gtk" and "Window" EmacsFrameClass => "Emacs", "Frame" and "Class" NSGraphicsContext => "NS", "Graphics" and "Context"
The subword oriented commands activated in this minor mode recognize subwords in a nomenclature to move between subwords and to edit them as words.
Subword-mode remaps common navigational commands to similar subword commands that are CamelCase aware.