1.Load abbrev-mode if it isn't loaded already (it is loaded if the text Abbrev is in the mode-line). To load it, press M-x and type abbrev-mode.
2.Type tdg (this is the word that expands to The Dotfile Generator ).
3.Press C-x a i g (inverse-add-global-abbrev).
4.Emacs now asks you what word the abbreviation should expand to. TypeThe Dotfile Generator.
Thus if you define tdgto be an abbreviation, to insert tdgand a space in the text, type tdg, press C-q, and finally press the spacebar (or any other word delimiter).
If you press M-x and type edit-abbrevs, a buffer appears in which you can edit the abbreviations
If you want the abbreviation to exist from one session to the next, you must insert the following line into your .emacs file:
When this line is in the .emacs file, abbreviations are loaded during startup of Emacs; when Emacs exits they are written. If you want the abbreviations to be saved as soon as they are defined, insert the following into your .emacs file: