How can I prevent Emacs from creating backup files?

Add the line

(setq make-backup-files nil)

to your Emacs initialization file. For GNU Emacs, the name of this file is ~/.emacs, the XEmacs init file is ~/.xemacs/init.el.