I use these bits and pieces with XEmacs, the world's best text editor. They're split into customizations, fixes. Take away anything you like, but watch for incompatibilities between XEmacs and GNU Emacs.
If you like them too, copy into your `.emacs' file.
Simply copy any of these you need into your `.emacs' file.
Watch out for upgraded versions of packages which
may not need these patches!