By default, if you highlight text in Emacs and then start typing, the highlighted text is not overwritten as in many other editors. This is easy to change by adding the following to your emacs config file:
;; overwrite selected text (delete-selection-mode t)